Draw if alpha is greater than 0x01 (previously 0x03). In practice, numbers this low can be useful for certain blend effects.

This commit is contained in:
Colby Klein
2011-03-14 02:34:03 -07:00
parent ac605ebbf7
commit b5a49f9dab
+7 -2
View File
@@ -2563,9 +2563,14 @@ RString RageDisplay_Legacy::GetTextureDiagnostics( unsigned iTexture ) const
return RString(); return RString();
} }
/*
* XXX: Things like this only have to be set once per context - making
* SetDefault call These kinds of functions is wasteful. -Colby
*/
void RageDisplay_Legacy::SetAlphaTest(bool b) void RageDisplay_Legacy::SetAlphaTest(bool b)
{ {
glAlphaFunc( GL_GREATER, 0.01f ); // Previously this was 0.01, rather than 0x01.
glAlphaFunc(GL_GREATER, 0.00390625 /* 1/256 */);
if(b) if(b)
glEnable(GL_ALPHA_TEST); glEnable(GL_ALPHA_TEST);
else else
@@ -2649,7 +2654,7 @@ GLint iCelTexture1, iCelTexture2 = 0;
void RageDisplay_Legacy::SetCelShaded( int stage ) void RageDisplay_Legacy::SetCelShaded( int stage )
{ {
if( !GLEW_ARB_fragment_shader ) if(!GLEW_ARB_fragment_program && !GL_ARB_shading_language_100)
return; // not supported return; // not supported
switch (stage) switch (stage)