mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 20:20:24 +01:00
mesa: add missing GL_UNSIGNED_INT_10F_11F_11F_REV case
in _mesa_error_check_format_and_type().
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=45967
(cherry picked from commit df1cd55ebf)
This commit is contained in:
parent
af47c324aa
commit
d715d3f4a8
1 changed files with 9 additions and 0 deletions
|
|
@ -428,6 +428,15 @@ _mesa_error_check_format_and_type(const struct gl_context *ctx,
|
|||
}
|
||||
return GL_NO_ERROR;
|
||||
|
||||
case GL_UNSIGNED_INT_10F_11F_11F_REV:
|
||||
if (!ctx->Extensions.EXT_packed_float) {
|
||||
return GL_INVALID_ENUM;
|
||||
}
|
||||
if (format != GL_RGB) {
|
||||
return GL_INVALID_OPERATION;
|
||||
}
|
||||
return GL_NO_ERROR;
|
||||
|
||||
default:
|
||||
; /* fall-through */
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue