diff --git a/bluesky/ui/qtgl/glhelpers.py b/bluesky/ui/qtgl/glhelpers.py index 2abbb00daa..6157ed9e80 100644 --- a/bluesky/ui/qtgl/glhelpers.py +++ b/bluesky/ui/qtgl/glhelpers.py @@ -188,6 +188,11 @@ 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, @@ -645,7 +650,8 @@ 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: - shader.setAttributeValue(*self.single_scale) + gl.glVertexAttrib1f(*self.single_scale) + # shader.setAttributeValue(*self.single_scale) if n_instances > 0: gl.glDrawArraysInstanced(