Temporary fix for Mac OS X crash in textoverlay
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Nov 2008 21:48:14 +0000
changeset 28097e257c3a3bf0
parent 2808 368410632f2d
child 2810 27cb878a278e
Temporary fix for Mac OS X crash in textoverlay
src/video/SDL_renderer_gl.c
     1.1 --- a/src/video/SDL_renderer_gl.c	Sat Nov 29 15:32:14 2008 +0000
     1.2 +++ b/src/video/SDL_renderer_gl.c	Sat Nov 29 21:48:14 2008 +0000
     1.3 @@ -594,6 +594,8 @@
     1.4          renderdata->glTexParameteri(data->type, GL_TEXTURE_STORAGE_HINT_APPLE,
     1.5                                      GL_STORAGE_CACHED_APPLE);
     1.6      }
     1.7 +/* This causes a crash in testoverlay for some reason.  Apple bug? */
     1.8 +#if 0
     1.9      if (texture->access == SDL_TEXTUREACCESS_STREAMING
    1.10          && texture->format == SDL_PIXELFORMAT_ARGB8888) {
    1.11          /*
    1.12 @@ -608,6 +610,7 @@
    1.13                                   texture_h, 0, format, type, data->pixels);
    1.14      } else
    1.15  #endif
    1.16 +#endif
    1.17      {
    1.18          renderdata->glTexImage2D(data->type, 0, internalFormat, texture_w,
    1.19                                   texture_h, 0, format, type, NULL);