-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug in texture_font_load_glyphs #207
Comments
Do you have more information, like a working/non working example ? |
Here is my example code: #include "freetype-gl.h" #define ALLCHARS "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+| ,./<>?[]{}" int main() I built the project without using cmake this time (just manually add source files), and at the second time the exception has been thrown at a different line. |
Do you know which line is faulty? |
The program stopped at texture_atlas.c, line 98. And here are some content in my own source file, is it different? 94 for( i=0; i<height; ++i ) |
From these information it is difficult to identify the problem. You should print all information (x,y,i,charsize,depth,etc.) to see if there's weird values. |
I think there's a problem with loading the NULL glyph, if I comment it out, the program runs successfully (but I yet don't know if it works correctly). |
Why do you get a NULL glyph? |
Oops, I mean the glyph represent the NULL character ('\0'), it was loaded first of all by the texture_font_init(...) function. |
Can you track (e.g. using printf) what is the faulty line? |
Program crashed with access violation error when I set texture atlas depth to 3, it worked fine with depth=1.
The other depth settings are yet to be checked so I don't know it also works or not.
The text was updated successfully, but these errors were encountered: