Skip to content
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

Determine the possibility of context loss in SDL2 #4

Open
nukep opened this issue Jun 22, 2015 · 0 comments
Open

Determine the possibility of context loss in SDL2 #4

nukep opened this issue Jun 22, 2015 · 0 comments
Labels

Comments

@nukep
Copy link
Owner

nukep commented Jun 22, 2015

As I understand it, OpenGL context losses aren't a real issue on the vast majority of platforms that SDL2 supports. However, the issue reportedly arises on Android and EGL if the device wakes up after going to sleep. I don't know for certain if this can happen in the Android port of SDL2, but it probably can.
The issue might also show up on SDL2 with Emscripten + WebGL, but I'm unsure.

If context losses are indeed possible in SDL2, detect it and acknowledge it with an error in swap_buffers().

From #3

@nukep nukep added the question label Jun 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant