mirror of
https://github.com/MobileGL-Dev/MobileGlues.git
synced 2025-09-22 10:42:11 -04:00
fix: skip calls to glTexParameterf(..., GL_TEXTURE_LOD_BIAS, ...) with
no effect
This commit is contained in:
parent
a8f7727ba5
commit
3cd1218d52
@ -40,7 +40,11 @@ GLenum internal_convert(GLenum internal_format, GLenum type) {
|
||||
|
||||
void glTexParameterf(GLenum target, GLenum pname, GLfloat param) {
|
||||
LOG();
|
||||
pname = pname_convert(pname);
|
||||
if (pname == GL_TEXTURE_LOD_BIAS && -1e-6 < param && param < 1e-6) {
|
||||
LOG_D("glTexParameterf: GL_TEXTURE_LOD_BIAS = 0");
|
||||
return;
|
||||
}
|
||||
// pname = pname_convert(pname);
|
||||
LOG_D("glTexParameterf, target: %d, pname: %d, param: %f",target, pname, param);
|
||||
LOAD_GLES(glTexParameterf, void, GLenum target, GLenum pname, GLfloat param);
|
||||
gles_glTexParameterf(target,pname, param);
|
||||
|
Loading…
x
Reference in New Issue
Block a user