Fixed GLES support (partially), PSP still not working

This commit is contained in:
2026-03-28 10:51:50 -05:00
parent 9ba0ceb000
commit d5b0441e6f
7 changed files with 122 additions and 43 deletions

View File

@@ -221,7 +221,7 @@ errorret_t shaderSetTextureGL(
name,
SHADER_UNLIT_TEXTURE,
"Only one texture supported in legacy opengl."
)
);
if(texture == NULL) {
glDisable(GL_TEXTURE_2D);
@@ -233,8 +233,6 @@ errorret_t shaderSetTextureGL(
errorChain(errorGLCheck());
glBindTexture(GL_TEXTURE_2D, texture->id);
errorChain(errorGLCheck());
glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
errorChain(errorGLCheck());
#else
if(shader->setTexture == NULL) {