Fixes testgles and testgl
This commit is contained in:
parent
3e171ab36e
commit
dca7c7b00d
4 changed files with 21 additions and 13 deletions
|
@ -159,6 +159,8 @@ main(int argc, char *argv[])
|
|||
state->gl_green_size = 5;
|
||||
state->gl_blue_size = 5;
|
||||
state->gl_depth_size = depth;
|
||||
state->gl_major_version = 1;
|
||||
state->gl_minor_version = 1;
|
||||
if (fsaa) {
|
||||
state->gl_multisamplebuffers=1;
|
||||
state->gl_multisamplesamples=fsaa;
|
||||
|
@ -177,6 +179,8 @@ main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
/* Create OpenGL ES contexts */
|
||||
SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
|
||||
|
||||
for (i = 0; i < state->num_windows; i++) {
|
||||
context[i] = SDL_GL_CreateContext(state->windows[i]);
|
||||
if (!context[i]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue