rougier / freetype-gl

OpenGL text using one vertex buffer, one texture and FreeType
Other
1.65k stars 266 forks source link

tiny build fixes #176

Closed tsgouros closed 6 years ago

tsgouros commented 6 years ago

This pull request adds a conditional to a test that requires AntTweakBar so that if you don't have this package (which isn't required) the build still completes.

Also fixes an error in texture-font.c, where the texture_font_load_glyph() function was being asked to return NULL on what I think was failure. But it needs to return an int, so I changed return NULL to return 0. Don't know enough about freetype-gl to know if this is correct, but it seems to be working for me. The other changes in texture-font.c you see here are just my editor automatically removing some trailing spaces, sorry about that.

rougier commented 6 years ago

Thanks !