mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 02:00:12 +01:00
gallium/swr: Fix crash when use GL_TDFX_texture_compression_FXT1 format.
Reject the new formats in swr to prevent crashes because it doesn't know how to handle the new formats. Reviewed-by: Jan Zielinski <jan.zielinski@intel.com>
This commit is contained in:
parent
b31637c453
commit
07adc47460
1 changed files with 3 additions and 1 deletions
|
|
@ -142,7 +142,9 @@ swr_is_format_supported(struct pipe_screen *_screen,
|
|||
}
|
||||
|
||||
if (format_desc->layout == UTIL_FORMAT_LAYOUT_BPTC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC) {
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_ASTC ||
|
||||
format_desc->layout == UTIL_FORMAT_LAYOUT_FXT1)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue