diff options
Diffstat (limited to 'src/runtimerender/resourcemanager/Qt3DSRenderLoadedTexture.cpp')
-rw-r--r-- | src/runtimerender/resourcemanager/Qt3DSRenderLoadedTexture.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/runtimerender/resourcemanager/Qt3DSRenderLoadedTexture.cpp b/src/runtimerender/resourcemanager/Qt3DSRenderLoadedTexture.cpp index 634e3c0..eee0c0b 100644 --- a/src/runtimerender/resourcemanager/Qt3DSRenderLoadedTexture.cpp +++ b/src/runtimerender/resourcemanager/Qt3DSRenderLoadedTexture.cpp @@ -944,14 +944,12 @@ SLoadedTexture *SLoadedTexture::Load(const QString &path, NVFoundationBase &inFo } else if (path.endsWith(QLatin1String("ktx"), Qt::CaseInsensitive)) { // We need to flip y coordinate in shader as it cannot be done at load time for // compressed textures. - bufferManager->SetInvertImageUVCoords(bufferManager->GetStringTable().RegisterStr(path), - inFlipCompressed); + bufferManager->SetInvertImageUVCoords(path, inFlipCompressed); theLoadedImage = LoadKTX(*theStream, inFlipY, inFoundation, renderContextType); } else if (path.endsWith(QLatin1String("astc"), Qt::CaseInsensitive)) { // We need to flip y coordinate in shader as it cannot be done at load time for // compressed textures. - bufferManager->SetInvertImageUVCoords(bufferManager->GetStringTable().RegisterStr(path), - inFlipCompressed); + bufferManager->SetInvertImageUVCoords(path, inFlipCompressed); theLoadedImage = LoadASTC(fileName, inFlipY, inFoundation, renderContextType); } else { qCWarning(INTERNAL_ERROR, "Unrecognized image extension: %s", qPrintable(path)); |