From bfaa92649eb18c718bbd66144eafb19b088b0a47 Mon Sep 17 00:00:00 2001 From: riccardom Date: Mon, 1 Feb 2010 17:05:23 +0000 Subject: [PATCH] SDL_GL_DOUBLEBUFFER is not a valid SDL_SetVideoMode flag. --- desmume/src/cli/main.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/desmume/src/cli/main.cpp b/desmume/src/cli/main.cpp index 6bb96f9b6..1a0ae81fd 100644 --- a/desmume/src/cli/main.cpp +++ b/desmume/src/cli/main.cpp @@ -751,7 +751,6 @@ int main(int argc, char ** argv) { if ( my_config.opengl_2d) { /* the flags to pass to SDL_SetVideoMode */ sdl_videoFlags = SDL_OPENGL; /* Enable OpenGL in SDL */ - sdl_videoFlags |= SDL_GL_DOUBLEBUFFER; /* Enable double buffering */ sdl_videoFlags |= SDL_HWPALETTE; /* Store the palette in hardware */ sdl_videoFlags |= SDL_RESIZABLE; /* Enable window resizing */ @@ -774,7 +773,7 @@ int main(int argc, char ** argv) { fprintf( stderr, "Video mode set failed: %s\n", SDL_GetError( ) ); exit( -1); } - + /* initialize OpenGL */ if ( !initGL( screen_texture)) {