Be a bit more clear about its operation.
}
/* check if integer color */
- fb->_IntegerColor = _mesa_is_format_integer(mesaFormat);
+ fb->_IntegerColor = _mesa_is_format_integer_color(mesaFormat);
/* Error-check width, height, format, samples
*/
* Is the given format a signed/unsigned integer color format?
*/
GLboolean
-_mesa_is_format_integer(gl_format format)
+_mesa_is_format_integer_color(gl_format format)
{
const struct gl_format_info *info = _mesa_get_format_info(format);
return (info->DataType == GL_INT || info->DataType == GL_UNSIGNED_INT) &&
_mesa_is_format_packed_depth_stencil(gl_format format);
extern GLboolean
-_mesa_is_format_integer(gl_format format);
+_mesa_is_format_integer_color(gl_format format);
extern GLenum
_mesa_get_format_color_encoding(gl_format format);
*/
if (ctx->Extensions.EXT_texture_integer && _mesa_is_color_format(format)) {
const struct gl_renderbuffer *rb = ctx->ReadBuffer->_ColorReadBuffer;
- const GLboolean srcInteger = _mesa_is_format_integer(rb->Format);
+ const GLboolean srcInteger = _mesa_is_format_integer_color(rb->Format);
const GLboolean dstInteger = _mesa_is_integer_format(format);
if (dstInteger != srcInteger) {
_mesa_error(ctx, GL_INVALID_OPERATION,
/* If copying into an integer texture, the source buffer must also be
* integer-valued.
*/
- if (_mesa_is_format_integer(teximage->TexFormat)) {
+ if (_mesa_is_format_integer_color(teximage->TexFormat)) {
struct gl_renderbuffer *rb = ctx->ReadBuffer->_ColorReadBuffer;
- if (!_mesa_is_format_integer(rb->Format)) {
+ if (!_mesa_is_format_integer_color(rb->Format)) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glCopyTexSubImage%dD(source buffer is not integer format)",
dimensions);