mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 23:47:30 +01:00
Fix compile problem for older (<3.0) GL versions compiled without extensions.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6124 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
49d7850d1e
commit
ce3e4b0e6e
@ -1915,7 +1915,7 @@ inline void COpenGLExtensionHandler::extGlUniform1uiv(GLint loc, GLsizei count,
|
||||
#ifdef _IRR_OPENGL_USE_EXTPOINTER_
|
||||
if (pGlUniform1uiv)
|
||||
pGlUniform1uiv(loc, count, v);
|
||||
#else
|
||||
#elif defined(GL_VERSION_3_0)
|
||||
glUniform1uiv(loc, count, v);
|
||||
#endif
|
||||
}
|
||||
@ -1925,7 +1925,7 @@ inline void COpenGLExtensionHandler::extGlUniform2uiv(GLint loc, GLsizei count,
|
||||
#ifdef _IRR_OPENGL_USE_EXTPOINTER_
|
||||
if (pGlUniform2uiv)
|
||||
pGlUniform2uiv(loc, count, v);
|
||||
#else
|
||||
#elif defined(GL_VERSION_3_0)
|
||||
glUniform2uiv(loc, count, v);
|
||||
#endif
|
||||
}
|
||||
@ -1935,7 +1935,7 @@ inline void COpenGLExtensionHandler::extGlUniform3uiv(GLint loc, GLsizei count,
|
||||
#ifdef _IRR_OPENGL_USE_EXTPOINTER_
|
||||
if (pGlUniform3uiv)
|
||||
pGlUniform3uiv(loc, count, v);
|
||||
#else
|
||||
#elif defined(GL_VERSION_3_0)
|
||||
glUniform3uiv(loc, count, v);
|
||||
#endif
|
||||
}
|
||||
@ -1945,7 +1945,7 @@ inline void COpenGLExtensionHandler::extGlUniform4uiv(GLint loc, GLsizei count,
|
||||
#ifdef _IRR_OPENGL_USE_EXTPOINTER_
|
||||
if (pGlUniform4uiv)
|
||||
pGlUniform4uiv(loc, count, v);
|
||||
#else
|
||||
#elif defined(GL_VERSION_3_0)
|
||||
glUniform4uiv(loc, count, v);
|
||||
#endif
|
||||
}
|
||||
|
@ -736,6 +736,7 @@ bool COpenGLSLMaterialRenderer::setPixelShaderConstant(s32 index, const u32* int
|
||||
case GL_UNSIGNED_INT:
|
||||
Driver->extGlUniform1uiv(UniformInfo[index].location, count, reinterpret_cast<const GLuint*>(ints));
|
||||
break;
|
||||
#if defined(GL_VERSION_3_0)
|
||||
case GL_UNSIGNED_INT_VEC2:
|
||||
Driver->extGlUniform2uiv(UniformInfo[index].location, count/2, reinterpret_cast<const GLuint*>(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<const GLuint*>(ints));
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
status = false;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user