src/render/opengles/SDL_render_gles.c
changeset 9977 f9cd179cf50e
parent 9958 687e118144c7
child 9998 f67cf37e9cd4
equal deleted inserted replaced
9976:9637657107a3 9977:f9cd179cf50e
   719             data->glScissor(renderer->viewport.x + rect->x, renderer->viewport.y + rect->y, rect->w, rect->h);
   719             data->glScissor(renderer->viewport.x + rect->x, renderer->viewport.y + rect->y, rect->w, rect->h);
   720         } else {
   720         } else {
   721             int w, h;
   721             int w, h;
   722 
   722 
   723             SDL_GetRendererOutputSize(renderer, &w, &h);
   723             SDL_GetRendererOutputSize(renderer, &w, &h);
   724             data->glScissor(renderer->viewport.x + rect->x, (h - renderer->viewport.y - renderer->viewport.h) + rect->y, rect->w, rect->h);
   724             data->glScissor(renderer->viewport.x + rect->x, h - renderer->viewport.y - rect->y - rect->h, rect->w, rect->h);
   725         }
   725         }
   726     } else {
   726     } else {
   727         data->glDisable(GL_SCISSOR_TEST);
   727         data->glDisable(GL_SCISSOR_TEST);
   728     }
   728     }
   729     return 0;
   729     return 0;