src/render/opengl/SDL_render_gl.c
changeset 6171 7b9126fde949
parent 6138 4c64952a58fb
child 6182 eb6796f3e598
equal deleted inserted replaced
6168:47dc1acea66f 6171:7b9126fde949
   272     renderer->DestroyTexture = GL_DestroyTexture;
   272     renderer->DestroyTexture = GL_DestroyTexture;
   273     renderer->DestroyRenderer = GL_DestroyRenderer;
   273     renderer->DestroyRenderer = GL_DestroyRenderer;
   274     renderer->info = GL_RenderDriver.info;
   274     renderer->info = GL_RenderDriver.info;
   275     renderer->info.flags = SDL_RENDERER_ACCELERATED;
   275     renderer->info.flags = SDL_RENDERER_ACCELERATED;
   276     renderer->driverdata = data;
   276     renderer->driverdata = data;
       
   277     renderer->window = window;
   277 
   278 
   278     data->context = SDL_GL_CreateContext(window);
   279     data->context = SDL_GL_CreateContext(window);
   279     if (!data->context) {
   280     if (!data->context) {
   280         GL_DestroyRenderer(renderer);
   281         GL_DestroyRenderer(renderer);
   281         return NULL;
   282         return NULL;