[Bf-blender-cvs] [c013d64] master: disable old Mac OpenGL workaround
Mike Erwin
noreply at git.blender.org
Tue Dec 8 07:22:38 CET 2015
Commit: c013d64a0a2dd1455111d5080fd968561fdad8d0
Author: Mike Erwin
Date: Mon Dec 7 23:59:36 2015 -0500
Branches: master
https://developer.blender.org/rBc013d64a0a2dd1455111d5080fd968561fdad8d0
disable old Mac OpenGL workaround
Comment says this is from the MacOS 10.5 era. Surely it’s been fixed by
now. If nobody complains in the next few months let’s delete this.
===================================================================
M source/blender/editors/screen/glutil.c
===================================================================
diff --git a/source/blender/editors/screen/glutil.c b/source/blender/editors/screen/glutil.c
index 5fc849d..91eea6f 100644
--- a/source/blender/editors/screen/glutil.c
+++ b/source/blender/editors/screen/glutil.c
@@ -482,9 +482,10 @@ void glaDrawPixelsTexScaled(float x, float y, int img_w, int img_h, int format,
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, zoomfilter);
-#ifdef __APPLE__
+#if defined(__APPLE__) && 0
+ /* [merwin] disable this workaround and see if anyone is affected. If not scrap it! Also at end of this function */
/* workaround for os x 10.5/10.6 driver bug: http://lists.apple.com/archives/Mac-opengl/2008/Jul/msg00117.html */
- glPixelZoom(1.f, 1.f);
+ glPixelZoom(1.0f, 1.0f);
#endif
/* setup seamless 2=on, 0=off */
@@ -583,7 +584,7 @@ void glaDrawPixelsTexScaled(float x, float y, int img_w, int img_h, int format,
glBindTexture(GL_TEXTURE_2D, 0);
glPixelStorei(GL_UNPACK_ROW_LENGTH, 0);
-#ifdef __APPLE__
+#if defined(__APPLE__) && 0
/* workaround for os x 10.5/10.6 driver bug (above) */
glPixelZoom(xzoom, yzoom);
#endif
More information about the Bf-blender-cvs
mailing list