src/render/opengl/SDL_render_gl.c
changeset 5276 8e421890cdb8
parent 5265 48724afcdc6e
child 5297 1800dc39b74c
equal deleted inserted replaced
5275:bad04e4710f6 5276:8e421890cdb8
   346 static void
   346 static void
   347 GL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
   347 GL_WindowEvent(SDL_Renderer * renderer, const SDL_WindowEvent *event)
   348 {
   348 {
   349     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
   349     GL_RenderData *data = (GL_RenderData *) renderer->driverdata;
   350 
   350 
   351     if (event->event == SDL_WINDOWEVENT_RESIZED) {
   351     if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED) {
   352         /* Rebind the context to the window area and update matrices */
   352         /* Rebind the context to the window area and update matrices */
   353         SDL_CurrentContext = NULL;
   353         SDL_CurrentContext = NULL;
   354         data->updateSize = SDL_TRUE;
   354         data->updateSize = SDL_TRUE;
   355     }
   355     }
   356 }
   356 }