changeset 2840:53ca0d758b0a

The previous checkin fixes the crash, so at least we're not overrunning the texture pixel data anymore...
author Sam Lantinga <slouken@libsdl.org>
date Sat, 06 Dec 2008 17:43:10 +0000
parents f89700cc9272
children 483f85e35a1a
files src/video/SDL_renderer_gl.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c	Sat Dec 06 17:41:01 2008 +0000
+++ b/src/video/SDL_renderer_gl.c	Sat Dec 06 17:43:10 2008 +0000
@@ -746,7 +746,7 @@
                                 GL_CLAMP_TO_EDGE);
     renderdata->glTexParameteri(data->type, GL_TEXTURE_WRAP_T,
                                 GL_CLAMP_TO_EDGE);
-#if 0 //def __MACOSX__
+#ifdef __MACOSX__
 #ifndef GL_TEXTURE_STORAGE_HINT_APPLE
 #define GL_TEXTURE_STORAGE_HINT_APPLE       0x85BC
 #endif
@@ -781,7 +781,7 @@
 #endif
 #endif
     {
-printf("teximage2d(%d,%d,%d,%d)\n", (int) texture_w, (int) texture_h);
+printf("teximage2d(%d,%d)\n", (int) texture_w, (int) texture_h);
         renderdata->glTexImage2D(data->type, 0, internalFormat, texture_w,
                                  texture_h, 0, format, type, NULL);
     }