Skip to content
Browse files

Closes #3 - texParameter bug: used wrong index in arguments

  • Loading branch information...
1 parent 59f9499 commit 6bd29ebae4c160553572eb9bf0e4cc9dd3910654 @puffnfresh committed Jul 13, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/glcontext.h
View
4 src/glcontext.h
@@ -290,7 +290,7 @@ class GLContext : public ObjectWrap {
HandleScope scope;
GLenum target = args[0]->Uint32Value();
- GLenum pname = args[0]->Uint32Value();
+ GLenum pname = args[1]->Uint32Value();
GLfloat param = args[2]->NumberValue();
glTexParameterf(target, pname, param);
@@ -302,7 +302,7 @@ class GLContext : public ObjectWrap {
HandleScope scope;
GLenum target = args[0]->Uint32Value();
- GLenum pname = args[0]->Uint32Value();
+ GLenum pname = args[1]->Uint32Value();
GLint param = args[2]->Int32Value();
glTexParameteri(target, pname, param);

0 comments on commit 6bd29eb

Please sign in to comment.
Something went wrong with that request. Please try again.