From 6ada26d3024303f65806878b2734472e1bbaf99a Mon Sep 17 00:00:00 2001 From: Paul McCarthy <pauld.mccarthy@gmail.com> Date: Mon, 21 Dec 2015 16:01:29 +0000 Subject: [PATCH] Regression fix - texture types need to be enabled for non-shader code, so I'll keep this in. --- fsl/fsleyes/gl/textures/texture.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fsl/fsleyes/gl/textures/texture.py b/fsl/fsleyes/gl/textures/texture.py index 38bf5af7f..7db3e8e58 100644 --- a/fsl/fsleyes/gl/textures/texture.py +++ b/fsl/fsleyes/gl/textures/texture.py @@ -143,7 +143,7 @@ class Texture(object): if textureUnit is not None: gl.glActiveTexture(textureUnit) - + gl.glEnable(self.__ttype) gl.glBindTexture(self.__ttype, self.__texture) self.__textureUnit = textureUnit @@ -154,6 +154,7 @@ class Texture(object): if self.__textureUnit is not None: gl.glActiveTexture(self.__textureUnit) + gl.glDisable(self.__ttype) gl.glBindTexture(self.__ttype, 0) -- GitLab