mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-28 12:30:09 +01:00
mesa unpack: call _mesa_problem when unpack function is not available
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
b3dd048cbb
commit
1a814217c3
1 changed files with 5 additions and 0 deletions
|
|
@ -1604,6 +1604,11 @@ get_unpack_rgba_function(gl_format format)
|
|||
initialized = GL_TRUE;
|
||||
}
|
||||
|
||||
if (table[format] == NULL) {
|
||||
_mesa_problem(NULL, "unsupported unpack for format %s",
|
||||
_mesa_get_format_name(format));
|
||||
}
|
||||
|
||||
return table[format];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue