ptitSeb / gl4es

GL4ES is a OpenGL 2.1/1.5 to GL ES 2.0/1.1 translation library, with support for Pandora, ODroid, OrangePI, CHIP, Raspberry PI, Android, Emscripten and AmigaOS4.
http://ptitseb.github.io/gl4es/
MIT License
694 stars 159 forks source link

quality difference between rendering on firefox and chrome , chrome renders very poor #365

Closed RavikumarTulugu closed 2 years ago

RavikumarTulugu commented 2 years ago

seeing huge quality difference between firefox and chrome using gl4es. pasting the screenshot here. I am new to this graphics, so i might be overlooking or failing to understand a trivial thing. please advise. I am seeing this warning from the library, both in firefox and chrome. but the firefox has no issues but chrome renders very poor. error: Forcing NPOT support by disabling MIPMAP support for NPOT textures

_//below line from init.c triggers the error if(strstr(Exts, "GL_ARB_texture_non_power_of_two ") || strstr(Exts, "GL_OES_texturenpot ")) hardext.npot = 3;

my chrome gpu flags have this GL_OES_texture_npot in the GL_EXTENSIONS string. i am not sure hardext.npot is still 1 and not 3. Please advise on whether the above error has any thing to do with the below picture quality or nothing to do.

Screenshot_20211207_110849

ptitSeb commented 2 years ago

The warning is you see is OK. And it's not the root cause of the issue. But I'll check the code to why you get a warning if the extension is supported.

The issue with the right picture is that Cubemap framebuffer doesn't seems to work properly. Not sure what the actual problem is. But framebuffer with cubemap attached seems to gives incorrect rendering, like if the texture actually didn't attache correctly to the framebuffer.

RavikumarTulugu commented 2 years ago

Thanks for the pointers.i will look in to it, lets keep this open for the warning.