mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 18:41:10 +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
|
// read image data
|
||||||
QImage image;
|
QImage image;
|
||||||
image.loadFromData(in.readAll(), "PNG");
|
if (!image.loadFromData(in.readAll(), "PNG")) {
|
||||||
if (!image.isNull()) {
|
|
||||||
qFatal("Failed to read SDFF image");
|
qFatal("Failed to read SDFF image");
|
||||||
}
|
}
|
||||||
gpu::Element formatGPU = gpu::Element(gpu::VEC3, gpu::UINT8, gpu::RGB);
|
gpu::Element formatGPU = gpu::Element(gpu::VEC3, gpu::UINT8, gpu::RGB);
|
||||||
|
|
Loading…
Reference in a new issue