• Andres Gomez's avatar
    mesa: INVALID_VALUE for wrong type or format in Clear*Buffer*Data · a43596df
    Andres Gomez authored
    Instead of generating a GL_INVALID_ENUM error when the type or format
    is incorrect while using glClear{Named}Buffer{Sub}Data, generate
    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:
    v2: correct the doxygen documentation.
    Cc: Pi Tabred <servuswiegehtz@yahoo.de>
    Cc: Brian Paul <brianp@vmware.com>
    Signed-off-by: Andres Gomez's avatarAndres Gomez <agomez@igalia.com>
    Reviewed-by: Tapani Pälli's avatarTapani Pälli <tapani.palli@intel.com>