mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 20:34:07 +02:00
Fix inverted glyphs load check
This commit is contained in:
parent
bcee01b3a3
commit
62bb1a49e4
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue