mirror of
https://github.com/overte-org/overte.git
synced 2025-04-23 01:13:32 +02:00
Merge pull request #6698 from zzmp/fix/check-locations-pipeline
Stop modelMesh render if pipeline is not found
This commit is contained in:
commit
d22811a771
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