From 3e3ba194f96264575e0d50a19c10726d3393b049 Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Fri, 17 Sep 2010 16:42:01 +0000 Subject: [PATCH] setting texture mode when blending git-svn-id: svn://anubis/anaglym/trunk@314 99a6e188-d820-4881-8870-2d33a10e2619 --- Engine.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Engine.cc b/Engine.cc index a205e9c..545fd3f 100644 --- a/Engine.cc +++ b/Engine.cc @@ -1426,13 +1426,14 @@ void Engine::Object::render() int attrib_flags = GL_ENABLE_BIT; if (m_enable_blending) { - attrib_flags |= GL_COLOR_BUFFER_BIT; + attrib_flags |= GL_COLOR_BUFFER_BIT | GL_TEXTURE_BIT; } glPushAttrib(attrib_flags); if (m_enable_blending) { glEnable(GL_BLEND); glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA); + glTexEnvi(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_REPLACE); } if (m_texture != 0) {