mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Add special blend mode hack to remove Pilot Wings brown boxes.
This commit is contained in:
parent
aa05ea2b54
commit
ff890e3bc8
1
Config.h
1
Config.h
|
@ -95,6 +95,7 @@ struct Config
|
|||
#define hack_noDepthFrameBuffers (1<<1) //Do not use depth buffers as texture
|
||||
#define hack_blurPauseScreen (1<<2) //Game copies frame buffer to depth buffer area, CPU blurs it. That image is used as background for pause screen.
|
||||
#define hack_scoreboard (1<<3) //Copy data from RDRAM to auxilary frame buffer. Scoreboard in Mario Tennis.
|
||||
#define hack_pilotWings (1<<4) //Special blend mode for PilotWings.
|
||||
|
||||
extern Config config;
|
||||
|
||||
|
|
|
@ -555,9 +555,10 @@ void OGLRender::_setBlendMode() const
|
|||
glBlendFunc( GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA );
|
||||
break;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
} else if ((config.generalEmulation.hacks & hack_pilotWings) != 0 && (gDP.otherMode.l & 0x80) != 0) { //CLR_ON_CVG without FORCE_BL
|
||||
glEnable(GL_BLEND);
|
||||
glBlendFunc(GL_ZERO, GL_ONE);
|
||||
} else {
|
||||
glDisable( GL_BLEND );
|
||||
}
|
||||
}
|
||||
|
|
3
RSP.cpp
3
RSP.cpp
|
@ -335,6 +335,9 @@ void RSP_Init()
|
|||
config.generalEmulation.hacks |= hack_blurPauseScreen;
|
||||
else if (strstr(RSP.romname, (const char *)"MarioTennis") != NULL)
|
||||
config.generalEmulation.hacks |= hack_scoreboard;
|
||||
else if (strstr(RSP.romname, (const char *)"Pilot Wings64") != NULL)
|
||||
config.generalEmulation.hacks |= hack_pilotWings;
|
||||
|
||||
|
||||
api().FindPluginPath(RSP.pluginpath);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user