glDisable(GL_TEXTURE_3D) -> glDisable(GL_TEXTURE_2D)

This commit is contained in:
KIU Shueng Chuan 2021-07-18 09:09:57 +08:00
parent fa77dae941
commit 6f49ede5c1
2 changed files with 2 additions and 2 deletions

View File

@ -99,5 +99,5 @@ class GLImageItem(GLGraphicsItem):
glTexCoord2f(0,1) glTexCoord2f(0,1)
glVertex3f(0, self.data.shape[1], 0) glVertex3f(0, self.data.shape[1], 0)
glEnd() glEnd()
glDisable(GL_TEXTURE_3D) glDisable(GL_TEXTURE_2D)

View File

@ -162,4 +162,4 @@ if HAVE_OPENGL:
glTexCoord2f(0, 0) glTexCoord2f(0, 0)
glVertex3f(-1, 1, 0) glVertex3f(-1, 1, 0)
glEnd() glEnd()
glDisable(GL_TEXTURE_3D) glDisable(GL_TEXTURE_2D)