Use PVR_TXRENV_MODULATE instead of MODULATEALPHA. Fixes #48

This commit is contained in:
Luke Benstead 2019-08-08 09:36:38 +01:00
parent b82d28130d
commit b6fccd3148

View File

@ -260,7 +260,7 @@ static void _glInitializeTextureObject(TextureObject* txr, unsigned int id) {
txr->width = txr->height = 0; txr->width = txr->height = 0;
txr->mipmap = 0; txr->mipmap = 0;
txr->uv_clamp = 0; txr->uv_clamp = 0;
txr->env = PVR_TXRENV_MODULATEALPHA; txr->env = PVR_TXRENV_MODULATE;
txr->data = NULL; txr->data = NULL;
txr->mipmapCount = 0; txr->mipmapCount = 0;
txr->minFilter = GL_NEAREST; txr->minFilter = GL_NEAREST;
@ -370,7 +370,7 @@ void APIENTRY glTexEnvi(GLenum target, GLenum pname, GLint param) {
switch(param) { switch(param) {
case GL_MODULATE: case GL_MODULATE:
active->env = PVR_TXRENV_MODULATEALPHA; active->env = PVR_TXRENV_MODULATE;
break; break;
case GL_DECAL: case GL_DECAL:
active->env = PVR_TXRENV_DECAL; active->env = PVR_TXRENV_DECAL;