1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-07 03:13:49 +00:00

Enable hack_noDepthFrameBuffers for Roadster trophy.

Roadster trophy demo mode has problem: car has no wheels.
The game does wierd trick: it allocates depth buffer,
but uses only low half of it for depth values.
Upper half used as common memory.
Wheels texture loaded into that memory area (inside depth buffer area!).
Since depth buffer updated dynamicaly, its validity can not be tested.
Thus, buffer considered as valid and frame buffer texture is used instead of wheel texture.

Fixed #1258
This commit is contained in:
Sergey Lipskiy 2016-11-26 19:21:54 +07:00
parent b32d8020bb
commit 3ac20d99c1

View File

@ -323,6 +323,8 @@ void RSP_Init()
config.generalEmulation.hacks |= hack_Ogre64;
else if (strstr(RSP.romname, (const char *)"F1 POLE POSITION 64") != nullptr)
config.generalEmulation.hacks |= hack_noDepthFrameBuffers;
else if (strstr(RSP.romname, (const char *)"ROADSTERS TROPHY") != nullptr)
config.generalEmulation.hacks |= hack_noDepthFrameBuffers;
else if (strstr(RSP.romname, (const char *)"CONKER BFD") != nullptr)
config.generalEmulation.hacks |= hack_blurPauseScreen | hack_rectDepthBufferCopyCBFD;
else if (strstr(RSP.romname, (const char *)"MICKEY USA") != nullptr)