From 0ef9647589664874ef1bfdcb5f160165f87dd762 Mon Sep 17 00:00:00 2001 From: Sevag Hanssian Date: Thu, 14 Jan 2021 09:08:17 -0500 Subject: [PATCH] Fix NULL in Android EGL_DEFAULT_DISPLAY --- src/SFML/Main/MainAndroid.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SFML/Main/MainAndroid.cpp b/src/SFML/Main/MainAndroid.cpp index a050c7199..f1e315b0e 100644 --- a/src/SFML/Main/MainAndroid.cpp +++ b/src/SFML/Main/MainAndroid.cpp @@ -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)