mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 11:43:16 +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;
|
||||
Locations* activeLocations = locations;
|
||||
|
||||
// Try to use the Batch
|
||||
//gpu::Batch batch;
|
||||
|
||||
/*if (isSkinned) {
|
||||
skinProgram->bind();
|
||||
activeProgram = skinProgram;
|
||||
activeLocations = skinLocations;
|
||||
} else {
|
||||
program->bind();
|
||||
}*/
|
||||
if (isSkinned) {
|
||||
activeProgram = skinProgram;
|
||||
activeLocations = skinLocations;
|
||||
}
|
||||
// This code replace the "bind()" on the QGLProgram
|
||||
if (!activeProgram->isLinked()) {
|
||||
activeProgram->link();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue