Permalink
Browse files

UI: Fix graphics API display on start.

Since it's a std::string return, it's a temporary, so returning it as a
pointer may drop the value.
  • Loading branch information...
unknownbrackets committed Dec 25, 2017
1 parent 8c1c0e1 commit f5b2a6601e9533732707e50d257d8cc27bcaa0a8
Showing with 2 additions and 2 deletions.
  1. +2 −2 UI/MiscScreens.cpp
View
@@ -501,8 +501,8 @@ void LogoScreen::render() {
#if (defined(_WIN32) && !PPSSPP_PLATFORM(UWP)) || PPSSPP_PLATFORM(ANDROID)
// Draw the graphics API, except on UWP where it's always D3D11
const char *apiName = gr->T(screenManager()->getDrawContext()->GetInfoString(InfoField::APINAME));
dc.DrawText(apiName, bounds.centerX(), ppsspp_org_y + 50, textColor, ALIGN_CENTER);
std::string apiName = screenManager()->getDrawContext()->GetInfoString(InfoField::APINAME);
dc.DrawText(gr->T(apiName), bounds.centerX(), ppsspp_org_y + 50, textColor, ALIGN_CENTER);
#endif
dc.End();

0 comments on commit f5b2a66

Please sign in to comment.