Fix inverted glyphs load check

This commit is contained in:
Atlante45 2015-05-26 18:18:50 +02:00
parent bcee01b3a3
commit 62bb1a49e4

View file

@ -290,8 +290,7 @@ void Font::read(QIODevice& in) {
// read image data
QImage image;
image.loadFromData(in.readAll(), "PNG");
if (!image.isNull()) {
if (!image.loadFromData(in.readAll(), "PNG")) {
qFatal("Failed to read SDFF image");
}
gpu::Element formatGPU = gpu::Element(gpu::VEC3, gpu::UINT8, gpu::RGB);