mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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:
parent
c96748f0e2
commit
ca8681f59c
1 changed files with 2 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue