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.
This commit is contained in:
Unknown W. Brackets 2017-12-24 18:04:18 -08:00
parent 8c1c0e1897
commit f5b2a6601e

View file

@ -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();