all repos — mgba @ d312aa2c7ab1681a6eb6dbf9591d95720f0b7753

mGBA Game Boy Advance Emulator

SDL: Fix some warnings
Jeffrey Pfau jeffrey@endrift.com
Fri, 31 Jul 2015 21:53:53 -0700
commit

d312aa2c7ab1681a6eb6dbf9591d95720f0b7753

parent

de61a4aea4a618f24af3478fd8a241bae095e7bb

2 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/platform/sdl/gl-common.csrc/platform/sdl/gl-common.c

@@ -10,6 +10,7 @@ struct SDLSoftwareRenderer* renderer = (struct SDLSoftwareRenderer*) context->user;

#if SDL_VERSION_ATLEAST(2, 0, 0) SDL_GL_SwapWindow(renderer->window); #else + UNUSED(renderer); SDL_GL_SwapBuffers(); #endif }
M src/platform/sdl/gles2-sdl.csrc/platform/sdl/gles2-sdl.c

@@ -7,6 +7,8 @@ #include "main.h"

#include "gl-common.h" +#include <malloc.h> + static bool GBASDLGLES2Init(struct SDLSoftwareRenderer* renderer); static void GBASDLGLES2Runloop(struct GBAThread* context, struct SDLSoftwareRenderer* renderer); static void GBASDLGLES2Deinit(struct SDLSoftwareRenderer* renderer);