diff options
author | Andres Gomez <[email protected]> | 2019-02-12 11:19:49 +0200 |
---|---|---|
committer | Andres Gomez <[email protected]> | 2019-02-15 14:28:06 +0200 |
commit | a43596df624678c39bc7108a04c8d1afc74663b0 (patch) | |
tree | 86ddf202cbc33bbadafc41f75720a62f232502ee /src/compiler/nir | |
parent | 67426ccd428706b558ae1d8697831ce337f97412 (diff) |
mesa: INVALID_VALUE for wrong type or format in Clear*Buffer*Data
Instead of generating a GL_INVALID_ENUM error when the type or format
is incorrect while using glClear{Named}Buffer{Sub}Data, generate
GL_INVALID_VALUE.
From page 72 (page 94 of the PDF) of the OpenGL 4.6 spec:
" An INVALID_VALUE error is generated if type is not one of the
types in table 8.2.
An INVALID_VALUE error is generated if format is not one of the
formats in table 8.3."
Fixes the following test:
KHR-GL45.direct_state_access.buffers_errors
v2: correct the doxygen documentation.
Cc: Pi Tabred <[email protected]>
Cc: Brian Paul <[email protected]>
Signed-off-by: Andres Gomez <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/compiler/nir')
0 files changed, 0 insertions, 0 deletions