From f5bc8e12d477a91c7d950675af81e074a94d6036 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Fri, 21 Sep 2012 00:14:26 +0200 Subject: Alpha operation fix --- src/graphics/opengl/gldevice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/graphics/opengl/gldevice.cpp b/src/graphics/opengl/gldevice.cpp index 360a058..1f9c6b0 100644 --- a/src/graphics/opengl/gldevice.cpp +++ b/src/graphics/opengl/gldevice.cpp @@ -756,7 +756,7 @@ after_tex_color: glTexEnvi(GL_TEXTURE_ENV, GL_SOURCE1_ALPHA, GL_TEXTURE); goto after_tex_operations; } - else if (params.colorOperation == TEX_MIX_OPER_REPLACE) + else if (params.alphaOperation == TEX_MIX_OPER_REPLACE) glTexEnvi(GL_TEXTURE_ENV, GL_COMBINE_ALPHA, GL_REPLACE); else if (params.alphaOperation == TEX_MIX_OPER_MODULATE) glTexEnvi(GL_TEXTURE_ENV, GL_COMBINE_ALPHA, GL_MODULATE); -- cgit v1.2.3-1-g7c22