Skip to content

Commit

Permalink
fix byte conversion issue for OpenGL
Browse files Browse the repository at this point in the history
  • Loading branch information
Aranuvir authored and Aranuvir committed Oct 9, 2017
1 parent 263e92d commit 084ec85
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions makehuman/lib/shader.py
Expand Up @@ -48,14 +48,15 @@
class Uniform(object):
def __init__(self, pgm, index, name, pytype, dims):
if type(name) is bytes:
name = name.decode('utf-8')
self.name = name.decode('utf-8')
else:
self.name = name
self.index = index
self.name = name
self.pytype = pytype
self.dims = dims
self.values = None
self.pgm = pgm
self.location = glGetUniformLocation(self.pgm, self.name)
self.location = glGetUniformLocation(self.pgm, name)

def __call__(self, index, values):
raise NotImplementedError
Expand Down

0 comments on commit 084ec85

Please sign in to comment.