src/render/opengl/SDL_render_gl.c
changeset 5981 75caa8a7d559
parent 5566 0d221d6ffac8
child 6135 b052a5882a47
equal deleted inserted replaced
5980:612b41c44af1 5981:75caa8a7d559
   346 }
   346 }
   347 
   347 
   348 static void
   348 static void
   349 GL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
   349 GL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
   350 {
   350 {
   351     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
       
   352 
       
   353     if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
   351     if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
   354         /* Rebind the context to the window area and update matrices */
   352         /* Rebind the context to the window area and update matrices */
   355         SDL_CurrentContext = NULL;
   353         SDL_CurrentContext = NULL;
   356     }
   354     }
   357 }
   355 }