Skip to content

Commit

Permalink
BF: incorrect texture ID in the newer ctype.byref call for pyglet.gl
Browse files Browse the repository at this point in the history
  • Loading branch information
peircej committed Nov 20, 2020
1 parent f4164bc commit 39777a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/visual/textbox2/fontmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ def upload(self):
"""
if not self.textureID:
self.textureID = gl.GLuint(0)
self.textureID = gl.glGenTextures(1, ctypes.byref(self.texid))
gl.glGenTextures(1, ctypes.byref(self.textureID))
logging.debug("Uploading Texture Font {} to graphics card"
.format(self.name))
gl.glBindTexture(gl.GL_TEXTURE_2D, self.textureID)
Expand Down

0 comments on commit 39777a3

Please sign in to comment.