clearing _needUpdate flag in GLImageItem to prevent redundant re-upload of textures

This commit is contained in:
Felix Schill 2016-05-21 17:50:05 +02:00
parent 670d63cdf4
commit 0a25fb0874

View File

@ -73,6 +73,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)