Commit fa766dc7 authored by Jan Möbius's avatar Jan Möbius

Added debug assertions

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@16571 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ad45b0d2
......@@ -333,6 +333,8 @@ void VertexDeclaration::deactivateFixedFunction() const
void VertexDeclaration::activateShaderPipeline(GLSL::Program* _prog) const
{
assert(_prog);
// setup correct attribute locations as specified
unsigned int numElements = getNumElements();
......@@ -363,6 +365,8 @@ void VertexDeclaration::activateShaderPipeline(GLSL::Program* _prog) const
void VertexDeclaration::deactivateShaderPipeline( GLSL::Program* _prog ) const
{
assert(_prog);
unsigned int numElements = getNumElements();
for (unsigned int i = 0; i < numElements; ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment