src/video/SDL_renderer_gles.c
changeset 3688 6512cba48440
parent 3685 64ce267332c6
child 3697 f7b03b6838cb
     1.1 --- a/src/video/SDL_renderer_gles.c	Thu Jan 21 07:22:11 2010 +0000
     1.2 +++ b/src/video/SDL_renderer_gles.c	Thu Jan 21 07:28:01 2010 +0000
     1.3 @@ -255,7 +255,7 @@
     1.4      renderer->DestroyTexture = GLES_DestroyTexture;
     1.5      renderer->DestroyRenderer = GLES_DestroyRenderer;
     1.6      renderer->info = GL_ES_RenderDriver.info;
     1.7 -    renderer->window = window->id;
     1.8 +    renderer->window = window;
     1.9      renderer->driverdata = data;
    1.10  
    1.11      renderer->info.flags =
    1.12 @@ -276,12 +276,12 @@
    1.13          return NULL;
    1.14      }
    1.15  
    1.16 -    data->context = SDL_GL_CreateContext(window->id);
    1.17 +    data->context = SDL_GL_CreateContext(window);
    1.18      if (!data->context) {
    1.19          GLES_DestroyRenderer(renderer);
    1.20          return NULL;
    1.21      }
    1.22 -    if (SDL_GL_MakeCurrent(window->id, data->context) < 0) {
    1.23 +    if (SDL_GL_MakeCurrent(window, data->context) < 0) {
    1.24          GLES_DestroyRenderer(renderer);
    1.25          return NULL;
    1.26      }
    1.27 @@ -334,7 +334,7 @@
    1.28      GLES_RenderData *data = (GLES_RenderData *) renderer->driverdata;
    1.29      SDL_Window *window = renderer->window;
    1.30  
    1.31 -    if (SDL_GL_MakeCurrent(window->id, data->context) < 0) {
    1.32 +    if (SDL_GL_MakeCurrent(window, data->context) < 0) {
    1.33          return -1;
    1.34      }
    1.35      if (data->updateSize) {