mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-30 09:43:45 +01:00
Don't use ManagedTexture in GameInfoCache, not needed.
This commit is contained in:
1 parent
82bdc9ec50
commit
75e96df448
6 files changed
+14
-10
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user