Update to openGL max texture size
@@ -57,11 +57,13 @@ def get_max_texture_sizes() -> Tuple[int, int]:
if max_size_2d == ():
max_size_2d = None
- # vispy doesn't expose GL_MAX_3D_TEXTURE_SIZE so hard coding for now.
- # MAX_TEXTURE_SIZE_3D = gl.glGetParameter(gl.GL_MAX_3D_TEXTURE_SIZE)
- # if MAX_TEXTURE_SIZE_3D == ():
- # MAX_TEXTURE_SIZE_3D = None
- max_size_3d = 2048
+ # vispy/gloo doesn't provide the GL_MAX_3D_TEXTURE_SIZE constant value
+ # so we hard coded it from the documentation, section constants at the bottom
+ # http://pyopengl.sourceforge.net/documentation/pydoc/OpenGL.GL.html
+ GL_MAX_3D_TEXTURE_SIZE = 32883
+ max_size_3d = gl.glGetParameter(GL_MAX_3D_TEXTURE_SIZE)
+ if max_size_3d == ():
+ max_size_3d = None
return max_size_2d, max_size_3d
