test/testgles.c
changeset 7796 75c80f36038e
parent 7794 7995e0920bf9
child 7910 261addaa47d0
     1.1 --- a/test/testgles.c	Thu Oct 10 00:30:03 2013 -0300
     1.2 +++ b/test/testgles.c	Thu Oct 10 00:49:57 2013 -0300
     1.3 @@ -161,6 +161,7 @@
     1.4      state->gl_depth_size = depth;
     1.5      state->gl_major_version = 1;
     1.6      state->gl_minor_version = 1;
     1.7 +    state->gl_profile_mask = SDL_GL_CONTEXT_PROFILE_ES;
     1.8      if (fsaa) {
     1.9          state->gl_multisamplebuffers=1;
    1.10          state->gl_multisamplesamples=fsaa;
    1.11 @@ -179,8 +180,6 @@
    1.12      }
    1.13  
    1.14      /* Create OpenGL ES contexts */
    1.15 -    SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
    1.16 -
    1.17      for (i = 0; i < state->num_windows; i++) {
    1.18          context[i] = SDL_GL_CreateContext(state->windows[i]);
    1.19          if (!context[i]) {