From caf8ef66d7da80b240d42506f5325f38fb97a34b Mon Sep 17 00:00:00 2001 From: David Vierra Date: Fri, 2 Jan 2015 11:44:22 -1000 Subject: [PATCH] Pass None when creating GL_PROXY_TEXTURE_2D in the hopes it will be interpreted as a null pointer --- src/mcedit2/rendering/textureatlas.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mcedit2/rendering/textureatlas.py b/src/mcedit2/rendering/textureatlas.py index cddcd63..880657e 100644 --- a/src/mcedit2/rendering/textureatlas.py +++ b/src/mcedit2/rendering/textureatlas.py @@ -256,7 +256,7 @@ def _getMaxSize(): size = 16384 while size > 0: size /= 2 - GL.glTexImage2D(GL.GL_PROXY_TEXTURE_2D, 0, GL.GL_RGBA, size, size, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, 0) + GL.glTexImage2D(GL.GL_PROXY_TEXTURE_2D, 0, GL.GL_RGBA, size, size, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, None) maxsize = GL.glGetTexLevelParameteriv(GL.GL_PROXY_TEXTURE_2D, 0, GL.GL_TEXTURE_WIDTH) if maxsize: