SDL_GL_DOUBLEBUFFER is not a valid SDL_SetVideoMode flag.

This commit is contained in:
riccardom 2010-02-01 17:05:23 +00:00
parent 907889d756
commit bfaa92649e
1 changed files with 1 additions and 2 deletions

View File

@ -751,7 +751,6 @@ int main(int argc, char ** argv) {
if ( my_config.opengl_2d) { if ( my_config.opengl_2d) {
/* the flags to pass to SDL_SetVideoMode */ /* the flags to pass to SDL_SetVideoMode */
sdl_videoFlags = SDL_OPENGL; /* Enable OpenGL in SDL */ 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_HWPALETTE; /* Store the palette in hardware */
sdl_videoFlags |= SDL_RESIZABLE; /* Enable window resizing */ 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( ) ); fprintf( stderr, "Video mode set failed: %s\n", SDL_GetError( ) );
exit( -1); exit( -1);
} }
/* initialize OpenGL */ /* initialize OpenGL */
if ( !initGL( screen_texture)) { if ( !initGL( screen_texture)) {