Skip to content

Commit

Permalink
Revert change
Browse files Browse the repository at this point in the history
  • Loading branch information
jooste committed Dec 8, 2023
1 parent a820a28 commit 3d767f4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions bluesky/ui/qtgl/glhelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,6 @@ def p_getuboiv(programid, uboid, pname):
funcptr = ctx.getProcAddress(b'glVertexAttrib4Nub')
gl.glVertexAttrib4Nub = funtype(funcptr.__int__())

# void glVertexAttrib1f( GLuint index, GLfloat v0)
funtype = ctypes.CFUNCTYPE(None, ctypes.c_uint32, ctypes.c_float)
funcptr = ctx.getProcAddress(b'glVertexAttrib1f')
gl.glVertexAttrib1f = funtype(funcptr.__int__())

# void glTexImage2D( GLenum target,
# GLint level,
# GLint internalFormat,
Expand Down Expand Up @@ -650,8 +645,7 @@ def draw(self, primitive_type=None, first_vertex=None, vertex_count=None, n_inst
self.texture.bind(0)

if self.single_scale is not None:
gl.glVertexAttrib1f(*self.single_scale)
# shader.setAttributeValue(*self.single_scale)
shader.setAttributeValue(*self.single_scale)

if n_instances > 0:
gl.glDrawArraysInstanced(
Expand Down

0 comments on commit 3d767f4

Please sign in to comment.