mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 14:21:04 +08:00
Fix NULL in Android EGL_DEFAULT_DISPLAY
This commit is contained in:
parent
e85ed33fb2
commit
0ef9647589
@ -492,6 +492,7 @@ JNIEXPORT void ANativeActivity_onCreate(ANativeActivity* activity, void* savedSt
|
||||
for (unsigned int i = 0; i < sf::Mouse::ButtonCount; i++)
|
||||
states->isButtonPressed[i] = false;
|
||||
|
||||
gladLoaderLoadEGL(EGL_DEFAULT_DISPLAY);
|
||||
states->display = eglGetDisplay(EGL_DEFAULT_DISPLAY);
|
||||
|
||||
if (savedState != NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user