test/testgles.c
changeset 7794 7995e0920bf9
parent 7787 e6f3e8fc96ea
child 7796 75c80f36038e
     1.1 --- a/test/testgles.c	Wed Oct 09 10:29:01 2013 -0300
     1.2 +++ b/test/testgles.c	Wed Oct 09 11:30:01 2013 -0300
     1.3 @@ -159,6 +159,8 @@
     1.4      state->gl_green_size = 5;
     1.5      state->gl_blue_size = 5;
     1.6      state->gl_depth_size = depth;
     1.7 +    state->gl_major_version = 1;
     1.8 +    state->gl_minor_version = 1;
     1.9      if (fsaa) {
    1.10          state->gl_multisamplebuffers=1;
    1.11          state->gl_multisamplesamples=fsaa;
    1.12 @@ -177,6 +179,8 @@
    1.13      }
    1.14  
    1.15      /* Create OpenGL ES contexts */
    1.16 +    SDL_GL_SetAttribute(SDL_GL_CONTEXT_PROFILE_MASK, SDL_GL_CONTEXT_PROFILE_ES);
    1.17 +
    1.18      for (i = 0; i < state->num_windows; i++) {
    1.19          context[i] = SDL_GL_CreateContext(state->windows[i]);
    1.20          if (!context[i]) {