mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-03 03:03:50 +01:00
UI: Fix incorrect 3D API.
If the string doesn't exist (e.g. OpenGL ES), the std::string goes out of scope, and we end up with a bad string. Oops.
This commit is contained in:
1 parent
c96748f0e2
commit
ca8681f59c
1 file changed
+2
-1
+2
-1
@@ -388,7 +388,8 @@ void SystemInfoScreen::CreateViews() {
|
||||
|
||||
DrawContext *draw = screenManager()->getDrawContext();
|
||||
|
||||
const char *apiName = gr->T(screenManager()->getDrawContext()->GetInfoString(InfoField::APINAME));
|
||||
const std::string apiNameKey = draw->GetInfoString(InfoField::APINAME);
|
||||
const char *apiName = gr->T(apiNameKey);
|
||||
deviceSpecs->Add(new InfoItem(si->T("3D API"), apiName));
|
||||
deviceSpecs->Add(new InfoItem(si->T("Vendor"), draw->GetInfoString(InfoField::VENDORSTRING)));
|
||||
std::string vendor = draw->GetInfoString(InfoField::VENDOR);
|
||||
|
||||
Reference in new issue
Block a user