Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stop warnings

The ES 1.1 conformacne tests do these before every test

    GLint max_stack_depth;
    glGetIntegerv(GL_MAX_MODELVIEW_STACK_DEPTH, &max_stack_depth);
    for (GLint i = 0; i < max_stack_depth; ++i) {
      glPopMatrix(GL_MODELVIEW);
    }

Which means regal ends up printing thousands of lines of un-needed warnings.

What do you think about either removing this assert or else making it a conditional compile? like #if REGAL_STACK_DEPTH_WARNING or something?
  • Loading branch information...
commit f116c635c08693bf3f6b6aeb30e594fe36ee93e9 1 parent f18baa0
@greggman greggman authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/regal/RegalIff.h
View
6 src/regal/RegalIff.h
@@ -1256,7 +1256,11 @@ struct RegalIff : public RegalEmu {
}
}
- void Pop() { RegalAssert( stack.size()>1 ); if ( stack.size()>1 ) stack.pop_back(); }
+ void Pop() {
+ /*RegalAssert( stack.size()>1 );*/
+ if ( stack.size()>1 )
+ stack.pop_back();
+ }
r3::Matrix4f &Top() { RegalAssert( stack.size() ); return stack.back().mat; }
const r3::Matrix4f &Top() const { RegalAssert( stack.size() ); return stack.back().mat; }
Please sign in to comment.
Something went wrong with that request. Please try again.