fix build error 2

This commit is contained in:
Sam Gondelman 2018-11-28 21:45:50 -08:00 committed by GitHub
parent dc32472bd6
commit 66d77d2df8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -283,7 +283,7 @@ void Procedural::prepare(gpu::Batch& batch,
recompiledShader = true;
}
batch.setPipeline(_proceduralPipelines[key]);
batch.setPipeline(recompiledShader ? _proceduralPipelines[key] : pipeline->second);
if (_shaderDirty || _uniformsDirty) {
setupUniforms();