BindTextureRenderNode is allowed to have texture == None

This commit is contained in:
David Vierra 2015-07-13 16:33:37 -10:00
parent cb90fcbd26
commit ee730eda2e

View File

@ -23,7 +23,8 @@ class BindTextureRenderNode(RenderstateRenderNode):
GL.glScale(*scale)
glutils.glActiveTexture(GL.GL_TEXTURE0)
GL.glEnable(GL.GL_TEXTURE_2D)
self.sceneNode.texture.bind()
if self.sceneNode.texture is not None:
self.sceneNode.texture.bind()
def exit(self):
GL.glMatrixMode(GL.GL_TEXTURE)