Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
electronut committed Nov 22, 2013
1 parent 1691e03 commit b3af62d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions simplegl/glutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def loadTexture(filename):
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR)
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, img.size[0], img.size[1],
0, GL_RGBA, GL_UNSIGNED_BYTE, imgData)
glBindTexture(GL_TEXTURE_2D, 0)
return texture

def perspective(fov, aspect, zNear, zFar):
Expand Down
1 change: 0 additions & 1 deletion simplegl/simpleglfw.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ def render(self, pMatrix, mvMatrix):
# enable texture
glActiveTexture(GL_TEXTURE0)
glBindTexture(GL_TEXTURE_2D, self.texId)

glUniform1i(self.tex2D, 0)

# bind VAO
Expand Down

0 comments on commit b3af62d

Please sign in to comment.