behdad / glyphy

GLyphy is a signed-distance-field (SDF) text renderer using OpenGL ES2 shading language.
Other
663 stars 76 forks source link

glyphy-demo.cc: Fix build on Visual Studio #46

Closed fanc999 closed 2 years ago

fanc999 commented 2 years ago

Hi,

This attempts to fix compiling glyphy-demo.cc on Visual Studio since in C++11 one is not allowed to assign a constant string literal (char array) to a non-const char* without an explicit cast1. It's some fact of life, sadly--I've yet to find a compiler flag that does what the accepted answer in the given SO link says that some compilers support, so please let me know if there is one for Visual Studio.

With blessings, thank you!