mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-23 03:04:03 -04:00
[Fix|Chore] (gl.c|...): Fix the sequence error of GL_RENDERER and GL_VERSION. Remove useless file.
Signed-off-by: BZLZHH <admin@bzlzhh.top>
This commit is contained in:
parent
ff13bcda93
commit
3be19db766
@ -16,20 +16,16 @@ GLAPI GLAPIENTRY GLenum glGetError() {
|
||||
return gles_glGetError();
|
||||
}
|
||||
|
||||
static char renderer_str[512];
|
||||
GLAPI GLAPIENTRY const GLubyte * glGetString( GLenum name ) {
|
||||
LOG();
|
||||
LOAD_GLES(glGetString, const GLubyte *, GLenum);
|
||||
switch (name) {
|
||||
case GL_VENDOR:
|
||||
return (const GLubyte *)"Swung0x48, BZLZHH";
|
||||
case GL_RENDERER:
|
||||
return (const GLubyte *)"2.1 MobileGlues";
|
||||
case GL_VERSION: {
|
||||
GLubyte *orig_str = gles_glGetString(GL_RENDERER);
|
||||
snprintf(renderer_str, 512 - 1, "2.1.0 %s", orig_str);
|
||||
return (const GLubyte *) renderer_str;
|
||||
}
|
||||
case GL_VERSION:
|
||||
return (const GLubyte *)"3.0 MobileGlues";
|
||||
case GL_RENDERER:
|
||||
return gles_glGetString(GL_RENDERER);
|
||||
}
|
||||
return (const GLubyte *)"NotSupported_GLenum";
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user