src/render/opengles/SDL_render_gles.c
changeset 6171 7b9126fde949
parent 6138 4c64952a58fb
child 6188 e82023802002
equal deleted inserted replaced
6168:47dc1acea66f 6171:7b9126fde949
   223     renderer->DestroyTexture = GLES_DestroyTexture;
   223     renderer->DestroyTexture = GLES_DestroyTexture;
   224     renderer->DestroyRenderer = GLES_DestroyRenderer;
   224     renderer->DestroyRenderer = GLES_DestroyRenderer;
   225     renderer->info = GLES_RenderDriver.info;
   225     renderer->info = GLES_RenderDriver.info;
   226     renderer->info.flags = SDL_RENDERER_ACCELERATED;
   226     renderer->info.flags = SDL_RENDERER_ACCELERATED;
   227     renderer->driverdata = data;
   227     renderer->driverdata = data;
       
   228     renderer->window = window;
   228 
   229 
   229     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
   230     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MAJOR_VERSION, 1);
   230     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
   231     SDL_GL_SetAttribute(SDL_GL_CONTEXT_MINOR_VERSION, 1);
   231 
   232 
   232     data->context = SDL_GL_CreateContext(window);
   233     data->context = SDL_GL_CreateContext(window);