-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add fallback on backends. #37
Comments
Perhaps we should return |
What is the minimum version OpenGL we support? We everywhere use 3.2, but 2d works well and with 2.1. It would be nice to have fallback to it. |
The |
I do not ask put OpenGL version in WindowSettings. I ask what is the minimum version OpenGL we support in piston projects? If it 3.2 and low versions we will not support, then no problem. But if we support low versions, then we need fallback or somethings else. |
Here is an example: |
Ok, so the window back-end attempts to fall back on an earlier version when As a first step, can we make a custom constructor per window back-end |
Currently
glfw_window
andsdl2_window
panics if OpenGL version not supported,glutin_window
writes error, but not panics. I propose to make it customizable. Add inWindowSettings
fieldfallback
or something similar. In backends panics if isfalse
and try to create context with default OpenGL if istrue
.The text was updated successfully, but these errors were encountered: