garrynewman / GWEN

Abandoned: GWEN - GUI Without Extravagant Nonsense.
MIT License
428 stars 102 forks source link

OpenGL Renderer (FreeImage) fails to load file if it uses FreeImage_GetFileTypeU, etc. #8

Open sreich opened 11 years ago

sreich commented 11 years ago

The FreeImage renderer fails for some reason, in OpenGL::LoadTexture by default. But if I change all the FreeImage_...U() methods to without the U, and pass in pTexture->name.Get().c_str(), it seems to load it fine.

No idea what's going on with that, I've never dealt with wchar, etc.

fuwaneko commented 11 years ago

It's probably related to Unicode mess inside GWEN.

sreich commented 11 years ago

you're probably right. argh, i've had to deal with the "unicode mess" several times in several areas