src/render/opengles2/SDL_render_gles2.c
changeset 9977 f9cd179cf50e
parent 9958 687e118144c7
child 9998 f67cf37e9cd4
equal deleted inserted replaced
9976:9637657107a3 9977:f9cd179cf50e
   416             data->glScissor(renderer->viewport.x + rect->x, renderer->viewport.y + rect->y, rect->w, rect->h);
   416             data->glScissor(renderer->viewport.x + rect->x, renderer->viewport.y + rect->y, rect->w, rect->h);
   417         } else {
   417         } else {
   418             int w, h;
   418             int w, h;
   419 
   419 
   420             SDL_GetRendererOutputSize(renderer, &w, &h);
   420             SDL_GetRendererOutputSize(renderer, &w, &h);
   421             data->glScissor(renderer->viewport.x + rect->x, (h - renderer->viewport.y - renderer->viewport.h) + rect->y, rect->w, rect->h);
   421             data->glScissor(renderer->viewport.x + rect->x, h - renderer->viewport.y - rect->y - rect->h, rect->w, rect->h);
   422         }
   422         }
   423     } else {
   423     } else {
   424         data->glDisable(GL_SCISSOR_TEST);
   424         data->glDisable(GL_SCISSOR_TEST);
   425     }
   425     }
   426     return 0;
   426     return 0;