Commit 16bb7855 authored by hybrid's avatar hybrid

Fix last showstopper for GL2 GLSL instantations

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3227 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9c4bb40b
...@@ -185,7 +185,7 @@ bool COpenGLSLMaterialRenderer::OnRender(IMaterialRendererServices* service, ...@@ -185,7 +185,7 @@ bool COpenGLSLMaterialRenderer::OnRender(IMaterialRendererServices* service,
E_VERTEX_TYPE vtxtype) E_VERTEX_TYPE vtxtype)
{ {
// call callback to set shader constants // call callback to set shader constants
if (CallBack && Program) if (CallBack && (Program||Program2))
CallBack->OnSetConstants(this, UserData); CallBack->OnSetConstants(this, UserData);
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