Fixed typo getting the drawable size
authorSam Lantinga <slouken@libsdl.org>
Thu, 13 Oct 2016 04:57:31 -0700
changeset 10531f304bc5dd3b5
parent 10530 2a3f8bc23daa
child 10532 b576db8b2346
Fixed typo getting the drawable size
src/render/opengl/SDL_render_gl.c
src/render/opengles/SDL_render_gles.c
     1.1 --- a/src/render/opengl/SDL_render_gl.c	Thu Oct 13 04:54:43 2016 -0700
     1.2 +++ b/src/render/opengl/SDL_render_gl.c	Thu Oct 13 04:57:31 2016 -0700
     1.3 @@ -1019,7 +1019,7 @@
     1.4      } else {
     1.5          int w, h;
     1.6  
     1.7 -        SDL_GL_GetDrawableSize(renderer, &w, &h);
     1.8 +        SDL_GL_GetDrawableSize(renderer->window, &w, &h);
     1.9          data->glViewport(renderer->viewport.x, (h - renderer->viewport.y - renderer->viewport.h),
    1.10                           renderer->viewport.w, renderer->viewport.h);
    1.11      }
    1.12 @@ -1057,7 +1057,7 @@
    1.13          } else {
    1.14              int w, h;
    1.15  
    1.16 -            SDL_GL_GetDrawableSize(renderer, &w, &h);
    1.17 +            SDL_GL_GetDrawableSize(renderer->window, &w, &h);
    1.18              data->glScissor(renderer->viewport.x + rect->x, h - renderer->viewport.y - rect->y - rect->h, rect->w, rect->h);
    1.19          }
    1.20      } else {
     2.1 --- a/src/render/opengles/SDL_render_gles.c	Thu Oct 13 04:54:43 2016 -0700
     2.2 +++ b/src/render/opengles/SDL_render_gles.c	Thu Oct 13 04:57:31 2016 -0700
     2.3 @@ -672,7 +672,7 @@
     2.4      } else {
     2.5          int w, h;
     2.6  
     2.7 -        SDL_GL_GetDrawableSize(renderer, &w, &h);
     2.8 +        SDL_GL_GetDrawableSize(renderer->window, &w, &h);
     2.9          data->glViewport(renderer->viewport.x, (h - renderer->viewport.y - renderer->viewport.h),
    2.10                           renderer->viewport.w, renderer->viewport.h);
    2.11      }
    2.12 @@ -715,7 +715,7 @@
    2.13          } else {
    2.14              int w, h;
    2.15  
    2.16 -            SDL_GL_GetDrawableSize(renderer, &w, &h);
    2.17 +            SDL_GL_GetDrawableSize(renderer->window, &w, &h);
    2.18              data->glScissor(renderer->viewport.x + rect->x, h - renderer->viewport.y - rect->y - rect->h, rect->w, rect->h);
    2.19          }
    2.20      } else {