if DISPLAY->SupportsPerVertexMatrixScale, then merge meshes with equal names. The allows some NoteSkins to be drawn in either 2 meshes or only 1 if vertex shaders are supported.

This commit is contained in:
Chris Danford
2005-10-21 06:36:08 +00:00
parent 2513b7aac1
commit 1903e07f56
6 changed files with 22 additions and 5 deletions
+6 -1
View File
@@ -1198,7 +1198,7 @@ void RageCompiledGeometryHWOGL::Draw( int iMeshIndex ) const
if( meshInfo.m_bNeedsTextureMatrixScale )
{
if( false ) //g_bTextureMatrixShader != 0 )
if( g_bTextureMatrixShader != 0 )
{
/* If we're using texture matrix scales, set up that buffer, too, and enable the
* vertex shader. This shader doesn't support all OpenGL state, so only enable it
@@ -1998,6 +1998,11 @@ bool RageDisplay_OGL::SupportsTextureFormat( PixelFormat pixfmt, bool bRealtime
}
}
bool RageDisplay_OGL::SupportsPerVertexMatrixScale()
{
return g_bTextureMatrixShader != 0;
}
void RageDisplay_OGL::SetSphereEnvironmentMapping( bool b )
{
if( b )