Fixed incorrect Uniform definition in shader.py _uniform_setters dict.
@@ -32,7 +32,9 @@ _uniform_setters = {
GL_FLOAT_VEC3: (GLfloat, glUniform3fv, 3, 1),
GL_FLOAT_VEC4: (GLfloat, glUniform4fv, 4, 1),
- GL_SAMPLER_2D: (GLint, glUniform1i, 1, 1),
+ GL_SAMPLER_1D: (GLint, glUniform1iv, 1, 1),
+ GL_SAMPLER_2D: (GLint, glUniform1iv, 1, 1),
+ GL_SAMPLER_3D: (GLint, glUniform1iv, 1, 1),
GL_FLOAT_MAT2: (GLfloat, glUniformMatrix2fv, 4, 1),
GL_FLOAT_MAT3: (GLfloat, glUniformMatrix3fv, 6, 1),
