This commit is contained in:
Glenn Maynard
2005-10-19 23:52:16 +00:00
parent 68eac42eda
commit 37029c2d0d
2 changed files with 8 additions and 8 deletions
+2 -2
View File
@@ -1926,12 +1926,12 @@ bool RageDisplay_OGL::SupportsSurfaceFormat( PixelFormat pixfmt )
}
bool RageDisplay_OGL::SupportsTextureFormat( PixelFormat pixfmt, bool realtime )
bool RageDisplay_OGL::SupportsTextureFormat( PixelFormat pixfmt, bool bRealtime )
{
/* If we support a pixfmt for texture formats but not for surface formats, then
* we'll have to convert the texture to a supported surface format before uploading.
* This is too slow for dynamic textures. */
if( realtime && !SupportsSurfaceFormat( pixfmt ) )
if( bRealtime && !SupportsSurfaceFormat(pixfmt) )
return false;
switch( g_GLPixFmtInfo[pixfmt].format )