mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-14 18:19:36 +01:00
Use the new way for GL_EXTENSIONS in reporting too.
This commit is contained in:
1 parent
8aed1c5f8e
commit
675efe99b3
1 file changed
+7
-1
@@ -587,7 +587,13 @@ void GLES_GPU::BuildReportingInfo() {
|
||||
const char *glRenderer = GetGLStringAlways(GL_RENDERER);
|
||||
const char *glVersion = GetGLStringAlways(GL_VERSION);
|
||||
const char *glSlVersion = GetGLStringAlways(GL_SHADING_LANGUAGE_VERSION);
|
||||
const char *glExtensions = GetGLStringAlways(GL_EXTENSIONS);
|
||||
const char *glExtensions = nullptr;
|
||||
|
||||
if (gl_extensions.VersionGEThan(3, 0)) {
|
||||
glExtensions = g_all_gl_extensions.c_str();
|
||||
} else {
|
||||
glExtensions = GetGLStringAlways(GL_EXTENSIONS);
|
||||
}
|
||||
|
||||
char temp[16384];
|
||||
snprintf(temp, sizeof(temp), "%s (%s %s), %s (extensions: %s)", glVersion, glVendor, glRenderer, glSlVersion, glExtensions);
|
||||
|
||||
Reference in new issue
Block a user