diff --git a/fsl/fsleyes/gl/textures/texture.py b/fsl/fsleyes/gl/textures/texture.py index 38bf5af7f48553921e70a0b376f3dd3502ccad33..7db3e8e581efcf3b77418c5b8f40fa8fc9dd8e9c 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)