Don't use ManagedTexture in GameInfoCache, not needed.

This commit is contained in:
Henrik Rydgård committed 2023-12-12 22:34:31 +01:00
1 parent 82bdc9ec50
commit 75e96df448
6 files changed
+14 -10

No files matched your search

+2 -2
View File
@@ -300,7 +300,7 @@ void SavedataButton::Draw(UIContext &dc) {
using namespace UI;
if (ginfo->icon.texture) {
texture = ginfo->icon.texture->GetTexture();
texture = ginfo->icon.texture;
}
int x = bounds_.x;
@@ -736,7 +736,7 @@ void GameIconView::Draw(UIContext &dc) {
float nw = std::min(bounds_.h * textureWidth_ / textureHeight_, (float)bounds_.w);
dc.Flush();
dc.GetDrawContext()->BindTexture(0, info->icon.texture->GetTexture());
dc.GetDrawContext()->BindTexture(0, info->icon.texture);
dc.Draw()->Rect(bounds_.x, bounds_.y, nw, bounds_.h, color);
dc.Flush();
dc.RebindTexture();