Skip to main content
gamedev.net
🔒 Locked

Stack Underflow

Started by Ilici Apr 24, 2003 at 11:22 AM 1 replies 1.8k views
Original Post
Ilici
Ilici
i discovered that when i test for opengl errors my app exits right away i get a stack underflow error. i checked my glPush and glPops and they are in equal numbers. when i get the error i get the MODELVIEW_MATRIX_DEPTH = 1, (max = 32) PROJ_MATRIX_DEPTH = 1 (max = 2) TEXTURE_MATRIX_DEPTH = 1 ATTRIB_MATRIX_DEPTH = 0 is this good or bad? how do i get rid of the error? i also made a variable which is incremented when a push op occures and decremented with a pop and at the end of the rendering it's 0 so that would mean no error [edited by - Ilici on April 24, 2003 12:44:37 PM]
blizzard999
blizzard999
Call glGetError() after every command to understand if the problem is in yor drivers or in your code...
Trienco
Trienco
one thing, because it must have confused someone before.

glPushAttrib ALWAYS requires ONE glPopAttrib, no matter how many bits you specified in the function call. and of course you shouldnt make the mistake to call pushclientattrib and then call popattrib.

[edited by - Trienco on April 25, 2003 3:03:21 AM]
f@dzhttp://festini.device-zero.de

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.