From b6fccd31487a843387f1284b54ae5d30231bca62 Mon Sep 17 00:00:00 2001 From: Luke Benstead Date: Thu, 8 Aug 2019 09:36:38 +0100 Subject: [PATCH] Use PVR_TXRENV_MODULATE instead of MODULATEALPHA. Fixes #48 --- GL/texture.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GL/texture.c b/GL/texture.c index f3a1662..91352fe 100644 --- a/GL/texture.c +++ b/GL/texture.c @@ -260,7 +260,7 @@ static void _glInitializeTextureObject(TextureObject* txr, unsigned int id) { txr->width = txr->height = 0; txr->mipmap = 0; txr->uv_clamp = 0; - txr->env = PVR_TXRENV_MODULATEALPHA; + txr->env = PVR_TXRENV_MODULATE; txr->data = NULL; txr->mipmapCount = 0; txr->minFilter = GL_NEAREST; @@ -370,7 +370,7 @@ void APIENTRY glTexEnvi(GLenum target, GLenum pname, GLint param) { switch(param) { case GL_MODULATE: - active->env = PVR_TXRENV_MODULATEALPHA; + active->env = PVR_TXRENV_MODULATE; break; case GL_DECAL: active->env = PVR_TXRENV_DECAL;