Merge branch 'plugin' of https://github.com/Swung0x48/MobileGlues into plugin

This commit is contained in:
Swung0x48 2025-02-28 10:52:44 +08:00
commit 5852bb489a

View File

@ -45,18 +45,14 @@ void glGetIntegerv(GLenum pname, GLint *params) {
GLenum glGetError() { GLenum glGetError() {
LOG(); LOG();
LOAD_GLES_FUNC(glGetError); LOAD_GLES_FUNC(glGetError);
GLuint err = gles_glGetError(); GLenum err = gles_glGetError();
// just clear gles error, no reporting
if (err != GL_NO_ERROR) { if (err != GL_NO_ERROR) {
if(global_settings.ignore_error >= 2) { // no logging without DEBUG
// no logging without DEBUG LOG_W("glGetError\n -> %d", err)
LOG_W("glGetError\n -> %d", err) LOG_W("Now try to cheat.")
LOG_W("Now try to cheat.")
return GL_NO_ERROR;
} else {
LOG_E(" -> %d", err)
}
} }
return err; return GL_NO_ERROR;
} }
static std::string es_ext; static std::string es_ext;