comparison test/common.c @ 1924:69217fdd2c0a

If the OpenGL renderer is selected for a non-OpenGL window, recreate the window with OpenGL enabled. Added OpenGL renderer error checking. Use fast-path texture formats in the OpenGL renderer.
author Sam Lantinga <slouken@libsdl.org>
date Sat, 22 Jul 2006 21:02:57 +0000
parents d4572b97b08f
children 7ee5297340f7
comparison
equal deleted inserted replaced
1923:d4572b97b08f 1924:69217fdd2c0a
52 } 52 }
53 if (SDL_strcasecmp(argv[index], "--renderer") == 0) { 53 if (SDL_strcasecmp(argv[index], "--renderer") == 0) {
54 ++index; 54 ++index;
55 if (!argv[index]) { 55 if (!argv[index]) {
56 return -1; 56 return -1;
57 }
58 if (SDL_strcasecmp(argv[index], "opengl") == 0) {
59 state->window_flags |= SDL_WINDOW_OPENGL;
60 } 57 }
61 state->renderdriver = argv[index]; 58 state->renderdriver = argv[index];
62 return 2; 59 return 2;
63 } 60 }
64 if (SDL_strcasecmp(argv[index], "--info") == 0) { 61 if (SDL_strcasecmp(argv[index], "--info") == 0) {