src/video/SDL_renderer_gles.c
changeset 3685 64ce267332c6
parent 3641 1e2e19d51265
child 3688 6512cba48440
     1.1 --- a/src/video/SDL_renderer_gles.c	Thu Jan 21 05:49:41 2010 +0000
     1.2 +++ b/src/video/SDL_renderer_gles.c	Thu Jan 21 06:21:52 2010 +0000
     1.3 @@ -332,7 +332,7 @@
     1.4  {
     1.5  
     1.6      GLES_RenderData *data = (GLES_RenderData *) renderer->driverdata;
     1.7 -    SDL_Window *window = SDL_GetWindowFromID(renderer->window);
     1.8 +    SDL_Window *window = renderer->window;
     1.9  
    1.10      if (SDL_GL_MakeCurrent(window->id, data->context) < 0) {
    1.11          return -1;
    1.12 @@ -872,7 +872,7 @@
    1.13  
    1.14      if (data->GL_OES_draw_texture_supported && data->useDrawTexture) {
    1.15          /* this code is a little funny because the viewport is upside down vs SDL's coordinate system */
    1.16 -        SDL_Window *window = SDL_GetWindowFromID(renderer->window);
    1.17 +        SDL_Window *window = renderer->window;
    1.18          GLint cropRect[4];
    1.19          cropRect[0] = srcrect->x;
    1.20          cropRect[1] = srcrect->y + srcrect->h;