Include renderpass definition in Vulkan shader cache entries, should make it more effective again.

This commit is contained in:
Henrik Rydgård committed 2018-03-29 14:36:04 +02:00
1 parent ff0e0df61d
commit d160292f54
9 files changed
+101 -50

No files matched your search

+4
View File
@@ -506,6 +506,8 @@ handleELF:
if (File::Exists(screenshotPath)) {
if (readFileToString(false, screenshotPath.c_str(), info_->icon.data)) {
info_->icon.dataLoaded = true;
} else {
ERROR_LOG(G3D, "Error loading screenshot data: '%s'", screenshotPath.c_str());
}
}
break;
@@ -795,6 +797,8 @@ void GameInfoCache::SetupTexture(std::shared_ptr<GameInfo> &info, Draw::DrawCont
tex.texture = CreateTextureFromFileData(thin3d, (const uint8_t *)tex.data.data(), (int)tex.data.size(), ImageFileType::DETECT);
if (tex.texture) {
tex.timeLoaded = time_now_d();
} else {
ERROR_LOG(G3D, "Failed creating texture");
}
}
if ((info->wantFlags & GAMEINFO_WANTBGDATA) == 0) {