mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-24 03:31:43 -04:00
misc: glGetString add GPU name
This commit is contained in:
parent
542ca15aeb
commit
0cd4bbde0f
@ -16,15 +16,20 @@ GLAPI GLAPIENTRY GLenum glGetError() {
|
|||||||
return gles_glGetError();
|
return gles_glGetError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static char renderer_str[512];
|
||||||
GLAPI GLAPIENTRY const GLubyte * glGetString( GLenum name ) {
|
GLAPI GLAPIENTRY const GLubyte * glGetString( GLenum name ) {
|
||||||
LOG();
|
LOG();
|
||||||
|
LOAD_GLES(glGetString, const GLubyte *, GLenum);
|
||||||
switch (name) {
|
switch (name) {
|
||||||
case GL_VENDOR:
|
case GL_VENDOR:
|
||||||
return (const GLubyte *)"Swung0x48, BZLZHH";
|
return (const GLubyte *)"Swung0x48, BZLZHH";
|
||||||
case GL_RENDERER:
|
case GL_RENDERER:
|
||||||
return (const GLubyte *)"2.1 MobileGlues";
|
return (const GLubyte *)"2.1 MobileGlues";
|
||||||
case GL_VERSION:
|
case GL_VERSION: {
|
||||||
return (const GLubyte *)"2.1.0";
|
GLubyte *orig_str = gles_glGetString(GL_RENDERER);
|
||||||
|
snprintf(renderer_str, 512 - 1, "2.1.0 %s", orig_str);
|
||||||
|
return (const GLubyte *) renderer_str;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return (const GLubyte *)"NotSupported_GLenum";
|
return (const GLubyte *)"NotSupported_GLenum";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user