From 6f49ede5c1794ead6ab085644495ee42071f37d7 Mon Sep 17 00:00:00 2001 From: KIU Shueng Chuan Date: Sun, 18 Jul 2021 09:09:57 +0800 Subject: [PATCH] glDisable(GL_TEXTURE_3D) -> glDisable(GL_TEXTURE_2D) --- pyqtgraph/opengl/items/GLImageItem.py | 2 +- pyqtgraph/widgets/RawImageWidget.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)