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
This commit is contained in:
pouillot 2011-10-31 15:34:09 +00:00
parent 9bb32f3efe
commit 6119db670c

View file

@ -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<ssgSimpleState*>(st)->setShininess(50);
// Pit wall texturing : the loaded 'logo*.rgb/.png' image file is supposed to consist