-
Notifications
You must be signed in to change notification settings - Fork 618
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -291,7 +291,7 @@ def active_uniforms(self): | |
name, size, gtype = gl.glGetActiveUniform(self.handle, i) | ||
# This checks if the uniform is an array | ||
# Name will be something like xxx[0] instead of xxx | ||
m = regex.match(name) | ||
m = regex.match(name.decode('utf-8')) | ||
# When uniform is an array, size corresponds to the highest used | ||
# index | ||
if m: | ||
|
@@ -342,7 +342,7 @@ def active_attributes(self): | |
|
||
# This checks if the attribute is an array | ||
# Name will be something like xxx[0] instead of xxx | ||
m = regex.match(name) | ||
m = regex.match(name.decode('utf-8')) | ||
# When attribute is an array, size corresponds to the highest used | ||
# index | ||
if m: | ||
|
@@ -393,7 +393,9 @@ def draw(self, mode=gl.GL_TRIANGLES, indices=None): | |
""" | ||
|
||
self.activate() | ||
attributes = self._attributes.values() | ||
|
||
# WARNING: The "list" of values from a dict is not a list | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
almarklein
Member
|
||
attributes = list(self._attributes.values()) | ||
|
||
# Get buffer size first attribute | ||
# We need more tests here | ||
|
Might want to add
on Py3k
or similar here, because IIRC that's when it changed