Lines Matching refs:buffers
354 GLsizei n, const GLenum *buffers, const char *caller) in draw_buffers() argument
389 (n != 1 || (buffers[0] != GL_NONE && buffers[0] != GL_BACK))) { in draw_buffers()
396 destMask[output] = draw_buffer_enum_to_bitmask(ctx, buffers[output]); in draw_buffers()
404 caller, _mesa_enum_to_string(buffers[output])); in draw_buffers()
429 buffers[output] == GL_BACK) { in draw_buffers()
437 caller, _mesa_enum_to_string(buffers[output])); in draw_buffers()
452 buffers[output] != GL_NONE && in draw_buffers()
453 (buffers[output] < GL_COLOR_ATTACHMENT0 || in draw_buffers()
454 buffers[output] >= GL_COLOR_ATTACHMENT0 + ctx->Const.MaxColorAttachments)) { in draw_buffers()
459 if (buffers[output] == GL_NONE) { in draw_buffers()
471 if (_mesa_is_user_fbo(fb) && buffers[output] >= in draw_buffers()
493 caller, _mesa_enum_to_string(buffers[output])); in draw_buffers()
503 buffers[output] != GL_NONE && in draw_buffers()
504 buffers[output] != GL_COLOR_ATTACHMENT0 + output) { in draw_buffers()
507 caller, _mesa_enum_to_string(buffers[output])); in draw_buffers()
519 caller, _mesa_enum_to_string(buffers[output])); in draw_buffers()
529 _mesa_drawbuffers(ctx, fb, n, buffers, destMask); in draw_buffers()
539 ctx->Driver.DrawBuffers(ctx, n, buffers); in draw_buffers()
541 ctx->Driver.DrawBuffer(ctx, n > 0 ? buffers[0] : GL_NONE); in draw_buffers()
547 _mesa_DrawBuffers(GLsizei n, const GLenum *buffers) in _mesa_DrawBuffers() argument
550 draw_buffers(ctx, ctx->DrawBuffer, n, buffers, "glDrawBuffers"); in _mesa_DrawBuffers()
609 GLuint n, const GLenum *buffers, const GLbitfield *destMask) in _mesa_drawbuffers() argument
619 mask[output] = draw_buffer_enum_to_bitmask(ctx, buffers[output]); in _mesa_drawbuffers()
641 fb->ColorDrawBuffer[0] = buffers[0]; in _mesa_drawbuffers()
663 fb->ColorDrawBuffer[buf] = buffers[buf]; in _mesa_drawbuffers()