mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-07 03:13:49 +00:00
Revert "Set texrect vertex alpha to 1 for Pokemon Stadium 2."
This reverts commit 54e0c533e9
.
This commit is contained in:
parent
3cfb377155
commit
fedc15fafd
|
@ -152,7 +152,6 @@ struct Config
|
|||
#define hack_rectDepthBufferCopyCBFD (1<<10) //Copy depth buffer only when game need it. Optimized for CBFD
|
||||
#define hack_skipVIChangeCheck (1<<11) //Don't reset FBO when VI parameters changed. Zelda MM
|
||||
#define hack_ZeldaCamera (1<<12) //Special hack to detect and process Zelda MM camera.
|
||||
#define hack_texrectVertexFullAlpha (1<<13) //Set texrect vertex alpha to 1
|
||||
|
||||
extern Config config;
|
||||
|
||||
|
|
|
@ -1070,7 +1070,7 @@ void OGLRender::drawTexturedRect(const TexturedRectParams & _params)
|
|||
#ifdef RENDERSTATE_TEST
|
||||
StateChanges++;
|
||||
#endif
|
||||
glVertexAttrib4f(SC_COLOR, 0, 0, 0, m_texrectVertexAlpha);
|
||||
glVertexAttrib4f(SC_COLOR, 0, 0, 0, 1);
|
||||
glVertexAttribPointer(SC_POSITION, 4, GL_FLOAT, GL_FALSE, sizeof(GLVertex), &m_rect[0].x);
|
||||
glVertexAttribPointer(SC_TEXCOORD0, 2, GL_FLOAT, GL_FALSE, sizeof(GLVertex), &m_rect[0].s0);
|
||||
glVertexAttribPointer(SC_TEXCOORD1, 2, GL_FLOAT, GL_FALSE, sizeof(GLVertex), &m_rect[0].s1);
|
||||
|
@ -1432,8 +1432,6 @@ void OGLRender::_initData()
|
|||
for (u32 i = 0; i < VERTBUFF_SIZE; ++i)
|
||||
triangles.vertices[i].w = 1.0f;
|
||||
triangles.num = 0;
|
||||
if ((config.generalEmulation.hacks & hack_texrectVertexFullAlpha) != 0)
|
||||
m_texrectVertexAlpha = 1.0f;
|
||||
}
|
||||
|
||||
void OGLRender::_destroyData()
|
||||
|
|
|
@ -130,7 +130,7 @@ public:
|
|||
void dropRenderState() {m_renderState = rsNone;}
|
||||
|
||||
private:
|
||||
OGLRender() : m_oglRenderer(glrOther), m_bImageTexture(false), m_bFlatColors(false), m_texrectVertexAlpha(0) {}
|
||||
OGLRender() : m_oglRenderer(glrOther), m_bImageTexture(false), m_bFlatColors(false) {}
|
||||
OGLRender(const OGLRender &);
|
||||
friend class OGLVideo;
|
||||
|
||||
|
@ -174,7 +174,6 @@ private:
|
|||
GLVertex m_rect[4];
|
||||
bool m_bImageTexture;
|
||||
bool m_bFlatColors;
|
||||
float m_texrectVertexAlpha;
|
||||
};
|
||||
|
||||
class OGLVideo
|
||||
|
|
|
@ -342,8 +342,6 @@ void RSP_Init()
|
|||
else if (strstr(RSP.romname, (const char *)"Perfect Dark") != NULL ||
|
||||
strstr(RSP.romname, (const char *)"PERFECT DARK") != NULL)
|
||||
config.generalEmulation.hacks |= hack_rectDepthBufferCopyPD;
|
||||
else if (strstr(RSP.romname, (const char *)"POKEMON STADIUM 2") != NULL)
|
||||
config.generalEmulation.hacks |= hack_texrectVertexFullAlpha;
|
||||
|
||||
api().FindPluginPath(RSP.pluginpath);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user