X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=source%2FIrrlicht%2FCOpenGLSLMaterialRenderer.cpp;fp=source%2FIrrlicht%2FCOpenGLSLMaterialRenderer.cpp;h=b2ba9f6740a1641c96f8b67f6c853eab9c06ec82;hb=048aa500b9a999d801ad8b2f7e771b2d8d5b8aad;hp=14a0ecfd537b029b2ddf28f8e37b4c92e3f1992d;hpb=eaefca2cd1d3472592654bb05fdfe16ed0b30218;p=irrlicht.git diff --git a/source/Irrlicht/COpenGLSLMaterialRenderer.cpp b/source/Irrlicht/COpenGLSLMaterialRenderer.cpp index 14a0ecf..b2ba9f6 100644 --- a/source/Irrlicht/COpenGLSLMaterialRenderer.cpp +++ b/source/Irrlicht/COpenGLSLMaterialRenderer.cpp @@ -736,6 +736,7 @@ bool COpenGLSLMaterialRenderer::setPixelShaderConstant(s32 index, const u32* int case GL_UNSIGNED_INT: Driver->extGlUniform1uiv(UniformInfo[index].location, count, reinterpret_cast(ints)); break; +#if defined(GL_VERSION_3_0) case GL_UNSIGNED_INT_VEC2: Driver->extGlUniform2uiv(UniformInfo[index].location, count/2, reinterpret_cast(ints)); break; @@ -745,6 +746,7 @@ bool COpenGLSLMaterialRenderer::setPixelShaderConstant(s32 index, const u32* int case GL_UNSIGNED_INT_VEC4: Driver->extGlUniform4uiv(UniformInfo[index].location, count/4, reinterpret_cast(ints)); break; +#endif default: status = false; break;