gak / gravit

A gravity simulator
http://gravit.slowchop.com/
GNU General Public License v2.0
66 stars 15 forks source link

glError src/font.c:157 1280 invalid enumerant #59

Open gak opened 12 years ago

gak commented 12 years ago

This is happening under VirtualBox on Ubuntu Pangolin, but the fonts render just fine.

It could possibly be an OpenGL error before the font code, possibly some of the new OpenGL code doesn't have glCheck()'s after them.

It also repeats on every frame so that is slightly annoying.

FrMo commented 12 years ago

invalid enumerant ... maybe related to a very old openGL version? what happens if you comment out that particular glCheck() call?

FrMo commented 12 years ago

Probably caught the bug ... drawFontLetter() was asked to draw the terminating 0x0 of a string.

Please check if commit bdd9b1c44d7b391bf551cd65b1e8d42fae71f4b1 fixes the problem.

(comment updated: wrong commit ID)

gak commented 12 years ago

Good catch. I'll check it out when I have a spare minute.