Commit 095ae506 authored by hybrid's avatar hybrid

Fix warning about implicit conversion.

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4142 dfc29bdd-3216-0410-991c-e03cc46cb475
parent de9c9aa6
...@@ -551,9 +551,9 @@ bool COpenGLSLMaterialRenderer::setPixelShaderConstant(const c8* name, const f32 ...@@ -551,9 +551,9 @@ bool COpenGLSLMaterialRenderer::setPixelShaderConstant(const c8* name, const f32
Driver->extGlUniformMatrix4fv(Location, count/16, false, floats); Driver->extGlUniformMatrix4fv(Location, count/16, false, floats);
break; break;
default: // deprecated. default: // deprecated.
os::Printer::log("You used deprecated solution, please use an int interface instead of a float to set a variable", name, ELL_WARNING); os::Printer::log("Deprecation! Please use int interface instead of float to set variable", name, ELL_WARNING);
s32 ID = *floats; const GLint id = static_cast<GLint>(*floats);
Driver->extGlUniform1iv(Location, 1, &ID); Driver->extGlUniform1iv(Location, 1, &id);
break; break;
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment