GL3: Bugfix

--HG--
branch : opengl3
hg/feature/opengl3
kaetemi 11 years ago
parent 181db9adb9
commit cda664c62a

@ -480,7 +480,7 @@ void ppGenerate(std::string &result, const CPPBuiltin &desc)
else if (useTex(desc, stage)) else if (useTex(desc, stage))
{ {
ss << "vec4 texel" << stage << " = texture(sampler" << stage << ", "; ss << "vec4 texel" << stage << " = texture(sampler" << stage << ", ";
if (desc.Shader == CMaterial::LightMap && stage != (maxTex - 1) && hasFlag(desc.VertexFormat, g_VertexFlags[TexCoord1])) if (desc.Shader == CMaterial::LightMap && stage != (maxTex - 1) && useTex(desc, stage + 1) && hasFlag(desc.VertexFormat, g_VertexFlags[TexCoord1]))
{ {
ss << g_AttribNames[TexCoord1]; ss << g_AttribNames[TexCoord1];
} }

Loading…
Cancel
Save