Fix NULL in Android EGL_DEFAULT_DISPLAY

This commit is contained in:
Sevag Hanssian 2021-01-14 09:08:17 -05:00 committed by Lukas Dürrenberger
parent e85ed33fb2
commit 0ef9647589

View File

@ -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)