The previous checkin fixes the crash, so at least we're not overrunning
authorSam Lantinga <slouken@libsdl.org>
Sat, 06 Dec 2008 17:43:10 +0000
changeset 2840 53ca0d758b0a
parent 2839 f89700cc9272
child 2841 483f85e35a1a
The previous checkin fixes the crash, so at least we're not overrunning the texture pixel data anymore...
src/video/SDL_renderer_gl.c
--- 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);
     }