Commits

Brian McKenna  committed 6bd29eb

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

  • Participants
  • Parent commits 59f9499

Comments (0)

Files changed (1)

File src/glcontext.h

         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);
 
         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);