mesa: Implement GL_CLEAR_TEXTURE flag
There are several questions before this flag can be implemented as well.
Can we check these errors in _mesa_GetInternalformativ()
?
1) An INVALID_OPERATION
error is generated if the base internal format is
DEPTH_COMPONENT
and format is not DEPTH_COMPONENT
2) An INVALID_OPERATION
error is generated if the base internal format is
DEPTH_STENCIL
and format is not DEPTH_STENCIL
.
3) An INVALID_OPERATION
error is generated if the base internal format is
STENCIL_INDEX
and format is not STENCIL_INDEX
.
4) An INVALID_OPERATION
error is generated if the base internal format is
RGBA
and the format is DEPTH_COMPONENT
, STENCIL_INDEX
, or DEPTH_STENCIL
.
5) An INVALID_OPERATION
error is generated if the internal format is integer and format does not specify integer data.
6) An INVALID_OPERATION
error is generated if the internal format is not
integer and format does specify integer data.
Done?
Closes: #7455 (closed)