Merge remote-tracking branch 'jdreaver/develop' into develop

This commit is contained in:
Luke Campagnola 2014-10-25 16:05:26 -04:00
commit b5955faaa2
1 changed files with 2 additions and 1 deletions

View File

@ -66,7 +66,8 @@ class GLScatterPlotItem(GLGraphicsItem):
#print pData.shape, pData.min(), pData.max()
pData = pData.astype(np.ubyte)
self.pointTexture = glGenTextures(1)
if getattr(self, "pointTexture", None) is None:
self.pointTexture = glGenTextures(1)
glActiveTexture(GL_TEXTURE0)
glEnable(GL_TEXTURE_2D)
glBindTexture(GL_TEXTURE_2D, self.pointTexture)