mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-14 03:32:15 +02:00
Stop modelMesh render if pipeline is not found
This commit is contained in:
parent
e179326e58
commit
2c2b794683
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue