- Timestamp:
- Oct 8, 2005, 3:55:00 PM (19 years ago)
- Location:
- trunk/src/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/model.h
r5304 r5321 15 15 16 16 // FORWARD DEFINITION // 17 class Vector;18 17 template<class T> class Array; 19 18 template<class T> class tList; -
trunk/src/lib/graphics/shader.cc
r5320 r5321 85 85 glDeleteObjectARB(this->vertexShader); 86 86 if (this->shaderProgram != 0) 87 { 88 GLint status = 0; 87 89 glDeleteObjectARB(this->shaderProgram); 88 90 // link error checking 91 glGetObjectParameterivARB(this->shaderProgram, GL_OBJECT_DELETE_STATUS_ARB, &status); 92 if (status == GL_INVALID_VALUE || status == GL_INVALID_OPERATION) 93 this->printError(this->shaderProgram); 94 } 89 95 } 90 96 … … 124 130 { 125 131 GLint status = 0; 126 glShaderSourceARB(shader, program->getCount(), (const GLcharARB**)program->getArray(), NULL);132 glShaderSourceARB(shader, program->getCount(), (const char**)program->getArray(), NULL); 127 133 glCompileShaderARB(shader); 128 134 // checking on error. … … 214 220 delete[] this->vertexShaderFile; 215 221 this->vertexShaderFile = NULL; 222 glDetachObjectARB(this->shaderProgram, this->vertexShader); 216 223 glDeleteObjectARB(this->vertexShader); 217 224 glGetObjectParameterivARB(this->vertexShader, GL_OBJECT_DELETE_STATUS_ARB, &status); … … 224 231 delete[] this->fragmentShaderFile; 225 232 this->fragmentShaderFile = NULL; 233 glDetachObjectARB(this->shaderProgram, this->fragmentShader); 226 234 glDeleteObjectARB(this->fragmentShader); 227 235 glGetObjectParameterivARB(this->fragmentShader, GL_OBJECT_DELETE_STATUS_ARB, &status); -
trunk/src/lib/util/array.h
r5262 r5321 37 37 38 38 /** @returns The array */ 39 inline constT* getArray () const { return this->array; };39 inline T* getArray () const { return this->array; }; 40 40 inline const T getEntry(unsigned int number) const; 41 41 /** * @returns The Count of entries in the Array*/
Note: See TracChangeset
for help on using the changeset viewer.