mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 22:20:01 +01:00
ref_gl: gl_image: added check for hardware support of BC6H/BC7 compression formats
This commit is contained in:
parent
6473efa995
commit
51fcae8cec
@ -1176,6 +1176,15 @@ static qboolean GL_UploadTexture( gl_texture_t *tex, rgbdata_t *pic )
|
||||
return false;
|
||||
}
|
||||
|
||||
if( pic->type == PF_BC6H_SIGNED || pic->type == PF_BC6H_UNSIGNED || pic->type == PF_BC7 )
|
||||
{
|
||||
if( !GL_Support( GL_ARB_TEXTURE_COMPRESSION_BPTC ))
|
||||
{
|
||||
gEngfuncs.Con_DPrintf( S_ERROR "GL_UploadTexture: BC6H/BC7 compression formats is not supported by your hardware\n" );
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
GL_SetTextureDimensions( tex, pic->width, pic->height, pic->depth );
|
||||
GL_SetTextureFormat( tex, pic->type, pic->flags );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user