From 6119db670c2258be1f4941c4921e6278f14cd791 Mon Sep 17 00:00:00 2001 From: pouillot Date: Mon, 31 Oct 2011 15:34:09 +0000 Subject: [PATCH] Re #387 Try forcing the pit wall state to be opaque git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4022 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 59b616bab8e71e268aaa08a6f9cc359b117ceadf Former-commit-id: f0901b8b1a86d863dbcbaa36ffb99bb3de60931c --- src/modules/graphic/ssggraph/grscene.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/modules/graphic/ssggraph/grscene.cpp b/src/modules/graphic/ssggraph/grscene.cpp index 14ff6df14..e75087e12 100644 --- a/src/modules/graphic/ssggraph/grscene.cpp +++ b/src/modules/graphic/ssggraph/grscene.cpp @@ -39,7 +39,7 @@ // Uncomment to enable support for PNG logos for normal pit-building wall // (does not apply to the no-building pit, with the low wall, which already supports PNG). -//#define PNG_LOGO_SUPPORT 1 +#define PNG_LOGO_SUPPORT 1 // Some public global variables. int grWrldX; @@ -278,9 +278,10 @@ void grCustomizePits(void) // If no car in the pit, or logo file not found, hope for the .rgb in data/textures. if (!st) { snprintf(buf, sizeof(buf), "data/textures"); - const std::string strRGBLogoFileName = strLogoFileName + ".rgb"; - st = grSsgLoadTexStateEx(strRGBLogoFileName.c_str(), buf, FALSE, FALSE, TRUE); + const std::string strRGBLogoFileName = strLogoFileName + ".rgb"; + st = grSsgLoadTexStateEx(strRGBLogoFileName.c_str(), buf, FALSE, FALSE, TRUE); } + st->setOpaque(); reinterpret_cast(st)->setShininess(50); // Pit wall texturing : the loaded 'logo*.rgb/.png' image file is supposed to consist