Commits

Alex Szpakowski committed 17ea458

Fixed extern matrices

Comments (0)

Files changed (1)

src/modules/graphics/opengl/Shader.cpp

 		return 1;
 	case GL_INT_VEC2:
 	case GL_FLOAT_VEC2:
+	case GL_FLOAT_MAT2:
 	case GL_BOOL_VEC2:
 		return 2;
 	case GL_INT_VEC3:
 	case GL_FLOAT_VEC3:
+	case GL_FLOAT_MAT3:
 	case GL_BOOL_VEC3:
 		return 3;
 	case GL_INT_VEC4:
 	case GL_FLOAT_VEC4:
+	case GL_FLOAT_MAT4:
 	case GL_BOOL_VEC4:
 		return 4;
 	default:
 	case GL_FLOAT_VEC2:
 	case GL_FLOAT_VEC3:
 	case GL_FLOAT_VEC4:
+	case GL_FLOAT_MAT2:
+	case GL_FLOAT_MAT3:
+	case GL_FLOAT_MAT4:
 		return UNIFORM_FLOAT;
 	case GL_BOOL:
 	case GL_BOOL_VEC2: