mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 13:58:51 +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) {
|
if (whichList) {
|
||||||
QVector<int>& list = *whichList;
|
QVector<int>& list = *whichList;
|
||||||
if (list.size() > 0) {
|
if (list.size() > 0) {
|
||||||
//if (pickProgramsNeeded) {
|
if (pickProgramsNeeded) {
|
||||||
pickPrograms(batch, mode, translucent, alphaThreshold, hasTangents, hasSpecular, isSkinned, args, skinLocations, specularTextureUnit);
|
pickPrograms(batch, mode, translucent, alphaThreshold, hasTangents, hasSpecular, isSkinned, args, skinLocations, specularTextureUnit);
|
||||||
pickProgramsNeeded = false;
|
pickProgramsNeeded = false;
|
||||||
//}
|
}
|
||||||
model->setupBatchTransform(batch);
|
model->setupBatchTransform(batch);
|
||||||
meshPartsRendered += model->renderMeshesFromList(list, batch, mode, translucent, alphaThreshold, args, skinLocations, specularTextureUnit);
|
meshPartsRendered += model->renderMeshesFromList(list, batch, mode, translucent, alphaThreshold, args, skinLocations, specularTextureUnit);
|
||||||
GLBATCH(glPopMatrix)();
|
GLBATCH(glPopMatrix)();
|
||||||
|
|
Loading…
Reference in a new issue