Skip to content

Commit 39777a3

Browse files
committed
BF: incorrect texture ID in the newer ctype.byref call for pyglet.gl
1 parent f4164bc commit 39777a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/visual/textbox2/fontmanager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ def upload(self):
283283
"""
284284
if not self.textureID:
285285
self.textureID = gl.GLuint(0)
286-
self.textureID = gl.glGenTextures(1, ctypes.byref(self.texid))
286+
gl.glGenTextures(1, ctypes.byref(self.textureID))
287287
logging.debug("Uploading Texture Font {} to graphics card"
288288
.format(self.name))
289289
gl.glBindTexture(gl.GL_TEXTURE_2D, self.textureID)

0 commit comments

Comments
 (0)