src/render/opengles2/SDL_render_gles2.c
changeset 6171 7b9126fde949
parent 6138 4c64952a58fb
child 6178 1fc633857667
equal deleted inserted replaced
6168:47dc1acea66f 6171:7b9126fde949
  1209         return NULL;
  1209         return NULL;
  1210     }
  1210     }
  1211     renderer->info = GLES2_RenderDriver.info;
  1211     renderer->info = GLES2_RenderDriver.info;
  1212     renderer->info.flags = SDL_RENDERER_ACCELERATED;
  1212     renderer->info.flags = SDL_RENDERER_ACCELERATED;
  1213     renderer->driverdata = rdata;
  1213     renderer->driverdata = rdata;
       
  1214     renderer->window = window;
  1214 
  1215 
  1215     /* Create an OpenGL ES 2.0 context */
  1216     /* Create an OpenGL ES 2.0 context */
  1216     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
  1217     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 2);
  1217     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
  1218     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 0);
  1218 
  1219