mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
actually only pick programs once
This commit is contained in:
parent
d7d7db4494
commit
3ff89be3fd
1 changed files with 2 additions and 2 deletions
|
@ -2003,10 +2003,10 @@ int Model::renderMeshesForModelsInScene(gpu::Batch& batch, RenderMode mode, bool
|
|||
if (whichList) {
|
||||
QVector<int>& list = *whichList;
|
||||
if (list.size() > 0) {
|
||||
//if (pickProgramsNeeded) {
|
||||
if (pickProgramsNeeded) {
|
||||
pickPrograms(batch, mode, translucent, alphaThreshold, hasTangents, hasSpecular, isSkinned, args, skinLocations, specularTextureUnit);
|
||||
pickProgramsNeeded = false;
|
||||
//}
|
||||
}
|
||||
model->setupBatchTransform(batch);
|
||||
meshPartsRendered += model->renderMeshesFromList(list, batch, mode, translucent, alphaThreshold, args, skinLocations, specularTextureUnit);
|
||||
GLBATCH(glPopMatrix)();
|
||||
|
|
Loading…
Reference in a new issue