diff --git a/pyqtgraph/opengl/items/GLImageItem.py b/pyqtgraph/opengl/items/GLImageItem.py index 7bd0ec02..dabe1c41 100644 --- a/pyqtgraph/opengl/items/GLImageItem.py +++ b/pyqtgraph/opengl/items/GLImageItem.py @@ -99,5 +99,5 @@ class GLImageItem(GLGraphicsItem): glTexCoord2f(0,1) glVertex3f(0, self.data.shape[1], 0) glEnd() - glDisable(GL_TEXTURE_3D) + glDisable(GL_TEXTURE_2D) diff --git a/pyqtgraph/widgets/RawImageWidget.py b/pyqtgraph/widgets/RawImageWidget.py index 2a12127f..f36c5cd0 100644 --- a/pyqtgraph/widgets/RawImageWidget.py +++ b/pyqtgraph/widgets/RawImageWidget.py @@ -162,4 +162,4 @@ if HAVE_OPENGL: glTexCoord2f(0, 0) glVertex3f(-1, 1, 0) glEnd() - glDisable(GL_TEXTURE_3D) + glDisable(GL_TEXTURE_2D)