Changeset 5333 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Oct 9, 2005, 12:11:23 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npc2.cc
r5325 r5333 32 32 33 33 this->loadModelWithScale("models/ships/bolido.obj", 3); 34 this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag"); 34 this->shader = NULL; 35 if (likely(Shader::checkShaderAbility())) 36 this->shader = Shader::getShader("shaders/toon.vert", "shaders/toon.frag"); 35 37 36 38 this->obj = gluNewQuadric(); … … 85 87 86 88 if (this->shader != NULL && this->shader != Shader::getActiveShader()) 87 {88 89 shader->activateShader(); 89 }90 90 gluSphere(this->obj, 3, 10, 10); 91 //shader->deactivateShader();91 shader->deactivateShader(); 92 92 93 93
Note: See TracChangeset
for help on using the changeset viewer.