trying to fix the 2xEmit bug,
write directly mirrored to the image,
This commit is contained in:
@@ -100,6 +100,8 @@ void GeometryEngine::loadFile(const char* filePath)
|
||||
for(auto& it : *textureNames)
|
||||
loadTexture(path.c_str(), it.c_str());
|
||||
|
||||
loadTexture("", "");
|
||||
|
||||
emit requestUpdate();
|
||||
emit sendMessage("done..", 0);
|
||||
}
|
||||
@@ -114,12 +116,13 @@ void GeometryEngine::loadTexture(const char* filePath, const char* fileName)
|
||||
bool loadSuccess(false);
|
||||
QImage img;
|
||||
|
||||
//if (!strcmp(fileName, ""))
|
||||
//{
|
||||
// img = QImage(1, 1, QImage::Format_RGB32);
|
||||
// img.fill(Qt::red);
|
||||
//}
|
||||
//else
|
||||
if (!strcmp(fileName, ""))
|
||||
{
|
||||
loadSuccess = true;
|
||||
img = QImage(1, 1, QImage::Format_RGB32);
|
||||
img.fill(Qt::red);
|
||||
}
|
||||
else
|
||||
img = loadTga((std::string(filePath) + std::string(fileName)).c_str(), loadSuccess);
|
||||
|
||||
//TODO: emit if not successfull
|
||||
|
||||
Reference in New Issue
Block a user