Merge pull request #345 from fschill/develop

performance improvement of GLImageItem
This commit is contained in:
Ogi Moore 2020-06-08 21:40:28 -07:00 committed by GitHub
commit 8fce6c6ad8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -76,6 +76,7 @@ class GLImageItem(GLGraphicsItem):
def paint(self):
if self._needUpdate:
self._updateTexture()
self._needUpdate = False
glEnable(GL_TEXTURE_2D)
glBindTexture(GL_TEXTURE_2D, self.texture)