# HG changeset patch # User Sam Lantinga # Date 1227995294 0 # Node ID 7e257c3a3bf0dabf068680d968e09d83b861afc5 # Parent 368410632f2dc3593fc4f44ec50882eda75e2c77 Temporary fix for Mac OS X crash in textoverlay diff -r 368410632f2d -r 7e257c3a3bf0 src/video/SDL_renderer_gl.c --- 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);