From 91058355cc0508ed938aa1cb2d1f35bb1b529cf6 Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Tue, 14 Feb 2012 18:23:58 +0000 Subject: font objects in blenderplayer fail when object with alpha is rendered the embed bge has its own DisableForText() routine which prepares the GL flags for the text render. For some reason blenderplayer is taking a slim approach and going straight for the rendering. This routine helps to address this bug/case (non reported, foundin my own project files). If need arises we should move this to its own routine incorporating the other GL tests the embed bge performs. --- .../GamePlayer/common/GPC_RenderTools.cpp | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'source/gameengine') diff --git a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp index 55e3220c08c..54e2efd8776 100644 --- a/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp +++ b/source/gameengine/GamePlayer/common/GPC_RenderTools.cpp @@ -291,6 +291,29 @@ void GPC_RenderTools::RenderText3D( int fontid, double* mat, float aspect) { + if(GLEW_ARB_multitexture) { + for(int i=0; i