#164429 - JYC376 - Sat Nov 01, 2008 7:09 am
So my 3d game has this really strange bug where if I try to call glTranslatef/glTranslate3f32 in a certain part of my code, it would freeze...Same goes with the glRotate* and glScale*
I know that I'm inside the 16-cube, and I'm not pushing too many matrices, because if I don't call any of those functions it won't crash.
...Anyone had the same problem?
If someone wants to check out the source: n-echo_src-10-31-08.zip - 0.18MB
EDIT: PUT THE APPS FOLDER AT ROOT AS WELL!
The offending function is draw_character in echo_gfx.cpp (line 185). It should crash with the first glTranslatef (before drawing the square), but it will work with just the last glTranslatef (at the end of the function) or no translate at all.
????
Thanks.
Last edited by JYC376 on Sun Nov 02, 2008 5:56 am; edited 1 time in total
I know that I'm inside the 16-cube, and I'm not pushing too many matrices, because if I don't call any of those functions it won't crash.
...Anyone had the same problem?
If someone wants to check out the source: n-echo_src-10-31-08.zip - 0.18MB
EDIT: PUT THE APPS FOLDER AT ROOT AS WELL!
The offending function is draw_character in echo_gfx.cpp (line 185). It should crash with the first glTranslatef (before drawing the square), but it will work with just the last glTranslatef (at the end of the function) or no translate at all.
????
Thanks.
Last edited by JYC376 on Sun Nov 02, 2008 5:56 am; edited 1 time in total