From ff9911deb5e9143ffd9e38abf27ff62635670ff2 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 23 Mar 2019 07:26:47 -0700 Subject: [PATCH] SDL: Fix compile error when not using FBDEV. --- SDL/SDLGLGraphicsContext.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SDL/SDLGLGraphicsContext.cpp b/SDL/SDLGLGraphicsContext.cpp index 1f3269a4df..12d43f790b 100644 --- a/SDL/SDLGLGraphicsContext.cpp +++ b/SDL/SDLGLGraphicsContext.cpp @@ -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; }