Improve comment regarding the replacement of the QGLProgram->bind()

This commit is contained in:
Sam Gateau 2014-10-23 14:53:43 -07:00
parent d7fca1fd27
commit d92c03364a

View file

@ -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();
} }