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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401969
This commit is contained in:
parent
68df2209ba
commit
75ff5f31f2
7 changed files with 99 additions and 41 deletions
|
@ -55,9 +55,6 @@ CommonArg(CommonState * state, int index)
|
|||
if (!argv[index]) {
|
||||
return -1;
|
||||
}
|
||||
if (SDL_strcasecmp(argv[index], "opengl") == 0) {
|
||||
state->window_flags |= SDL_WINDOW_OPENGL;
|
||||
}
|
||||
state->renderdriver = argv[index];
|
||||
return 2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue