Merge pull request #6698 from zzmp/fix/check-locations-pipeline

Stop modelMesh render if pipeline is not found
This commit is contained in:
samcake 2015-12-18 13:20:12 -08:00
commit d22811a771

View file

@ -470,6 +470,9 @@ void ModelMeshPartPayload::render(RenderArgs* args) const {
ModelRender::pickPrograms(batch, mode, translucentMesh, alphaThreshold, hasLightmap, hasTangents, hasSpecular, isSkinned, wireframe,
args, locations);
if (!locations) { // the pipeline could not be found
return;
}
// Bind the model transform and the skinCLusterMatrices if needed
bindTransform(batch, locations);