diff src/video/SDL_renderer_gles.c @ 3685:64ce267332c6

Switched from SDL_WindowID and SDL_TextureID to SDL_Window* and SDL_Texture* for code simplicity and improved performance.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 21 Jan 2010 06:21:52 +0000
parents 1e2e19d51265
children 6512cba48440
line wrap: on
line diff
--- a/src/video/SDL_renderer_gles.c	Thu Jan 21 05:49:41 2010 +0000
+++ b/src/video/SDL_renderer_gles.c	Thu Jan 21 06:21:52 2010 +0000
@@ -332,7 +332,7 @@
 {
 
     GLES_RenderData *data = (GLES_RenderData *) renderer->driverdata;
-    SDL_Window *window = SDL_GetWindowFromID(renderer->window);
+    SDL_Window *window = renderer->window;
 
     if (SDL_GL_MakeCurrent(window->id, data->context) < 0) {
         return -1;
@@ -872,7 +872,7 @@
 
     if (data->GL_OES_draw_texture_supported && data->useDrawTexture) {
         /* this code is a little funny because the viewport is upside down vs SDL's coordinate system */
-        SDL_Window *window = SDL_GetWindowFromID(renderer->window);
+        SDL_Window *window = renderer->window;
         GLint cropRect[4];
         cropRect[0] = srcrect->x;
         cropRect[1] = srcrect->y + srcrect->h;