don't use GL_UNSIGNED_SHORT_1_5_5_5_REV for movie textures

if it'll require an additional conversion
This commit is contained in:
Glenn Maynard
2003-11-29 17:56:09 +00:00
parent 7f23f32257
commit cac44ec303
7 changed files with 30 additions and 22 deletions
+2 -2
View File
@@ -593,14 +593,14 @@ SDL_Surface *RageDisplay::CreateSurfaceFromPixfmt( PixelFormat pixfmt,
}
RageDisplay::PixelFormat RageDisplay::FindPixelFormat(
int bpp, int Rmask, int Gmask, int Bmask, int Amask )
int bpp, int Rmask, int Gmask, int Bmask, int Amask, bool realtime )
{
PixelFormatDesc tmp = { bpp, Rmask, Gmask, Bmask, Amask };
for(int pixfmt = 0; pixfmt < NUM_PIX_FORMATS; ++pixfmt)
{
const PixelFormatDesc *pf = GetPixelFormatDesc(PixelFormat(pixfmt));
if(!SupportsTextureFormat( PixelFormat(pixfmt) ))
if(!SupportsTextureFormat( PixelFormat(pixfmt), realtime ))
continue;
if(memcmp(pf, &tmp, sizeof(tmp)))