mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 00:14:05 +02:00
Improve comment regarding the replacement of the QGLProgram->bind()
This commit is contained in:
parent
d7fca1fd27
commit
d92c03364a
1 changed files with 1 additions and 10 deletions
|
@ -1649,20 +1649,11 @@ int Model::renderMeshes(gpu::Batch& batch, RenderMode mode, bool translucent, fl
|
||||||
ProgramObject* activeProgram = program;
|
ProgramObject* activeProgram = program;
|
||||||
Locations* activeLocations = locations;
|
Locations* activeLocations = locations;
|
||||||
|
|
||||||
// Try to use the Batch
|
|
||||||
//gpu::Batch batch;
|
|
||||||
|
|
||||||
/*if (isSkinned) {
|
|
||||||
skinProgram->bind();
|
|
||||||
activeProgram = skinProgram;
|
|
||||||
activeLocations = skinLocations;
|
|
||||||
} else {
|
|
||||||
program->bind();
|
|
||||||
}*/
|
|
||||||
if (isSkinned) {
|
if (isSkinned) {
|
||||||
activeProgram = skinProgram;
|
activeProgram = skinProgram;
|
||||||
activeLocations = skinLocations;
|
activeLocations = skinLocations;
|
||||||
}
|
}
|
||||||
|
// This code replace the "bind()" on the QGLProgram
|
||||||
if (!activeProgram->isLinked()) {
|
if (!activeProgram->isLinked()) {
|
||||||
activeProgram->link();
|
activeProgram->link();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue