testing windows render bug

This commit is contained in:
ZappoMan 2015-07-23 13:17:12 -07:00
parent 91d317f964
commit a0666d5e99

View file

@ -142,6 +142,10 @@ void DeferredLightingEffect::bindSimpleProgram(gpu::Batch& batch, bool textured,
bool emmisive, bool depthBias) { bool emmisive, bool depthBias) {
SimpleProgramKey config{textured, culled, emmisive, depthBias}; SimpleProgramKey config{textured, culled, emmisive, depthBias};
batch.setPipeline(getPipeline(config)); batch.setPipeline(getPipeline(config));
gpu::ShaderPointer program = (config.isEmissive()) ? _emissiveShader : _simpleShader;
int glowIntensity = program->getUniforms().findLocation("glowIntensity");
batch._glUniform1f(glowIntensity, 1.0f);
if (!config.isTextured()) { if (!config.isTextured()) {
// If it is not textured, bind white texture and keep using textured pipeline // If it is not textured, bind white texture and keep using textured pipeline