changeset 2809:7e257c3a3bf0

Temporary fix for Mac OS X crash in textoverlay
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Nov 2008 21:48:14 +0000
parents 368410632f2d
children 27cb878a278e
files src/video/SDL_renderer_gl.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/SDL_renderer_gl.c	Sat Nov 29 15:32:14 2008 +0000
+++ b/src/video/SDL_renderer_gl.c	Sat Nov 29 21:48:14 2008 +0000
@@ -594,6 +594,8 @@
         renderdata->glTexParameteri(data->type, GL_TEXTURE_STORAGE_HINT_APPLE,
                                     GL_STORAGE_CACHED_APPLE);
     }
+/* This causes a crash in testoverlay for some reason.  Apple bug? */
+#if 0
     if (texture->access == SDL_TEXTUREACCESS_STREAMING
         && texture->format == SDL_PIXELFORMAT_ARGB8888) {
         /*
@@ -608,6 +610,7 @@
                                  texture_h, 0, format, type, data->pixels);
     } else
 #endif
+#endif
     {
         renderdata->glTexImage2D(data->type, 0, internalFormat, texture_w,
                                  texture_h, 0, format, type, NULL);