]> git.lizzy.rs Git - irrlicht.git/blobdiff - source/Irrlicht/COpenGLSLMaterialRenderer.cpp
Merging r6122 through r6127 from trunk to ogl-es branch
[irrlicht.git] / source / Irrlicht / COpenGLSLMaterialRenderer.cpp
index 14a0ecfd537b029b2ddf28f8e37b4c92e3f1992d..b2ba9f6740a1641c96f8b67f6c853eab9c06ec82 100644 (file)
@@ -736,6 +736,7 @@ bool COpenGLSLMaterialRenderer::setPixelShaderConstant(s32 index, const u32* int
                case GL_UNSIGNED_INT:\r
                        Driver->extGlUniform1uiv(UniformInfo[index].location, count, reinterpret_cast<const GLuint*>(ints));\r
                        break;\r
+#if defined(GL_VERSION_3_0)\r
                case GL_UNSIGNED_INT_VEC2:\r
                        Driver->extGlUniform2uiv(UniformInfo[index].location, count/2, reinterpret_cast<const GLuint*>(ints));\r
                        break;\r
@@ -745,6 +746,7 @@ bool COpenGLSLMaterialRenderer::setPixelShaderConstant(s32 index, const u32* int
                case GL_UNSIGNED_INT_VEC4:\r
                        Driver->extGlUniform4uiv(UniformInfo[index].location, count/4, reinterpret_cast<const GLuint*>(ints));\r
                        break;\r
+#endif\r
                default:\r
                        status = false;\r
                        break;\r