clearing _needUpdate flag in GLImageItem to prevent redundant re-upload of textures
This commit is contained in:
parent
670d63cdf4
commit
0a25fb0874
@ -73,6 +73,7 @@ class GLImageItem(GLGraphicsItem):
|
|||||||
def paint(self):
|
def paint(self):
|
||||||
if self._needUpdate:
|
if self._needUpdate:
|
||||||
self._updateTexture()
|
self._updateTexture()
|
||||||
|
self._needUpdate = False
|
||||||
glEnable(GL_TEXTURE_2D)
|
glEnable(GL_TEXTURE_2D)
|
||||||
glBindTexture(GL_TEXTURE_2D, self.texture)
|
glBindTexture(GL_TEXTURE_2D, self.texture)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user