SDL: Fix compile error when not using FBDEV.

This commit is contained in:
Unknown W. Brackets committed 2019-03-23 07:26:47 -07:00
1 parent c7c45f0aca
commit ff9911deb5
1 file changed
+2 -2
+2 -2
View File
@@ -167,7 +167,7 @@ EGLConfig EGL_FindConfig(int *contextVersion) {
return best;
}
int8_t EGL_Init() {
int8_t EGL_Init(SDL_Window *window) {
int contextVersion = 0;
EGLConfig eglConfig = EGL_FindConfig(&contextVersion);
if (!eglConfig) {
@@ -316,7 +316,7 @@ int SDLGLGraphicsContext::Init(SDL_Window *&window, int x, int y, int mode, std:
SDL_ShowWindow(window);
#ifdef USING_EGL
if (EGL_Init() != 0) {
if (EGL_Init(window) != 0) {
printf("EGL_Init() failed\n");
return 1;
}