DuoCore - Page 3

DuoCore

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

when i was posting that, your post with line numbers didn't exists :> I guess that's a good start.

edit: seems that the code that causes your problem does so on purpose. not good.

Code: Select all

	for (i = 0; i < 64; i++) {
		glPopMatrix();
		err = glGetError();
		if (err != GL_NONE) {
			break; // we're looking for GL_STACK_UNDERFLOW
		}
	}
guess we need to count pops and pushes in the call-in.

edit2: you could comment out that code and see what happens...
Kloot
Spring Developer
Posts: 1867
Joined: 08 Oct 2006, 16:58

Post by Kloot »

The GL_STACK_UNDERFLOW errors are easy to
prevent by passing which matrix stack needs
clearing to ClearMatrixStack() and retrieving its
its depth via the GL_*_STACK_DEPTH enums
(I've already done so ;)), but the comments at
the top of LuaOpenGL.cpp suggest there is a
reason why that method isn't used.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

oops just committed a push/pop counter... didn't notice the note on the top :/

anyway, AF, test it asap so we can revert it.
User avatar
LordMatt
Posts: 3393
Joined: 15 May 2005, 04:26

Post by LordMatt »

Well thanks to AF for testing. I looked at that program more closely and it requires windows, which I don't have. :( Besides AF actually knows a thing or two about coding. :P
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

witht he svn atm it just spams the grass drawer issue now
GLExpert: OpenGL Error report; A provided enum value is out of range
OGL Error Code = 0x00000500
No sign of the LuaOpenGL.cpp issue. Although this is just as bad now.
imbaczek
Posts: 3629
Joined: 22 Aug 2006, 16:19

Post by imbaczek »

um, try a map without grass? :wink:
anyway, I'm without a computer for the weekend, so someone else feel free to investigate and fix.
Post Reply

Return to “Engine”