Skip to content
Snippets Groups Projects
Commit 6ada26d3 authored by Paul McCarthy's avatar Paul McCarthy
Browse files

Regression fix - texture types need to be enabled for non-shader code,

so I'll keep this in.
parent 497cc8dc
No related branches found
No related tags found
No related merge requests found
...@@ -143,7 +143,7 @@ class Texture(object): ...@@ -143,7 +143,7 @@ class Texture(object):
if textureUnit is not None: if textureUnit is not None:
gl.glActiveTexture(textureUnit) gl.glActiveTexture(textureUnit)
gl.glEnable(self.__ttype)
gl.glBindTexture(self.__ttype, self.__texture) gl.glBindTexture(self.__ttype, self.__texture)
self.__textureUnit = textureUnit self.__textureUnit = textureUnit
...@@ -154,6 +154,7 @@ class Texture(object): ...@@ -154,6 +154,7 @@ class Texture(object):
if self.__textureUnit is not None: if self.__textureUnit is not None:
gl.glActiveTexture(self.__textureUnit) gl.glActiveTexture(self.__textureUnit)
gl.glDisable(self.__ttype)
gl.glBindTexture(self.__ttype, 0) gl.glBindTexture(self.__ttype, 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment