src/video/quartz/SDL_QuartzVideo.m
branchSDL-1.2
changeset 8040 22a7f096bb9d
parent 7069 f7fd5c3951b9
--- a/src/video/quartz/SDL_QuartzVideo.m	Fri Nov 15 22:33:55 2013 -0500
+++ b/src/video/quartz/SDL_QuartzVideo.m	Sun Dec 01 00:00:17 2013 -0500
@@ -1635,6 +1635,10 @@
 
 int QZ_SetGammaRamp (_THIS, Uint16 *ramp)
 {
+    /* These no longer work on Mac OS X, and crash on some drivers (Intel HD
+        4000 on Mac OS X 10.9, for example). */
+    return -1;
+#if 0
     const uint32_t tableSize = 256;
     CGGammaValue redTable[tableSize];
     CGGammaValue greenTable[tableSize];
@@ -1657,10 +1661,15 @@
         return 0;
     else
         return -1;
+#endif
 }
 
 int QZ_GetGammaRamp (_THIS, Uint16 *ramp)
 {
+    /* These no longer work on Mac OS X, and crash on some drivers (Intel HD
+        4000 on Mac OS X 10.9, for example). */
+    return -1;
+#if 0
     const uint32_t tableSize = 256;
     CGGammaValue redTable[tableSize];
     CGGammaValue greenTable[tableSize];
@@ -1685,5 +1694,6 @@
         ramp[i] = blueTable[i % tableSize] * 65535.0;
 
     return 0;
+#endif
 }