mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-12-13 00:17:21 +00:00
Merge pull request #4280 from thedax/truncateOpenGLVerString
SysInfoScreen: Truncate the OpenGL version string so it doesn't run amok.
This commit is contained in:
commit
a28151437b
@ -196,7 +196,9 @@ void SystemInfoScreen::CreateViews() {
|
||||
deviceSpecs->Add(new InfoItem("Vendor", (char *)glGetString(GL_VENDOR)));
|
||||
deviceSpecs->Add(new InfoItem("Model", (char *)glGetString(GL_RENDERER)));
|
||||
deviceSpecs->Add(new ItemHeader("OpenGL Version Information"));
|
||||
deviceSpecs->Add(new InfoItem("OpenGL", (char *)glGetString(GL_VERSION)));
|
||||
std::string openGL = (char *)glGetString(GL_VERSION);
|
||||
openGL.resize(30);
|
||||
deviceSpecs->Add(new InfoItem("OpenGL", openGL));
|
||||
deviceSpecs->Add(new InfoItem("GLSL", (char *)glGetString(GL_SHADING_LANGUAGE_VERSION)));
|
||||
|
||||
ViewGroup *oglExtensionsScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
|
Loading…
Reference in New Issue
Block a user