all repos — mgba @ fbb29de1606f1489fc5aa7f7492e9a610cd95fcd

mGBA Game Boy Advance Emulator

SDL: Fix GLES2 build
Jeffrey Pfau jeffrey@endrift.com
Tue, 22 Nov 2016 13:45:45 -0500
commit

fbb29de1606f1489fc5aa7f7492e9a610cd95fcd

parent

ea7534e8017adb2f03dac23ca65ad90385e6969d

1 files changed, 4 insertions(+), 4 deletions(-)

jump to
M src/platform/sdl/gles2-sdl.csrc/platform/sdl/gles2-sdl.c

@@ -9,9 +9,9 @@ #include "gl-common.h"

#include <malloc.h> -static bool mSDLGLES2Init(struct SDLSoftwareRenderer* renderer); -static void mSDLGLES2RunloopGBA(struct SDLSoftwareRenderer* renderer, void* user); -static void mSDLGLES2Deinit(struct SDLSoftwareRenderer* renderer); +static bool mSDLGLES2Init(struct mSDLRenderer* renderer); +static void mSDLGLES2RunloopGBA(struct mSDLRenderer* renderer, void* user); +static void mSDLGLES2Deinit(struct mSDLRenderer* renderer); void mSDLGLES2Create(struct mSDLRenderer* renderer) { renderer->init = mSDLGLES2Init;

@@ -19,7 +19,7 @@ renderer->deinit = mSDLGLES2Deinit;

renderer->runloop = mSDLGLES2RunloopGBA; } -bool mSDLGLES2Init(struct SDLSoftwareRenderer* renderer) { +bool mSDLGLES2Init(struct mSDLRenderer* renderer) { #ifdef BUILD_RASPI bcm_host_init(); renderer->display = eglGetDisplay(EGL_DEFAULT_DISPLAY);