return mask;
}
-static GLenum
-back_to_front_if_single_buffered(const struct gl_framebuffer *fb,
- GLenum buffer)
+GLenum
+_mesa_back_to_front_if_single_buffered(const struct gl_framebuffer *fb,
+ GLenum buffer)
{
/* If the front buffer is the only buffer, GL_BACK and all other flags
* that include BACK select the front buffer for drawing. There are
static GLbitfield
draw_buffer_enum_to_bitmask(const struct gl_context *ctx, GLenum buffer)
{
- buffer = back_to_front_if_single_buffered(ctx->DrawBuffer, buffer);
+ buffer = _mesa_back_to_front_if_single_buffered(ctx->DrawBuffer, buffer);
switch (buffer) {
case GL_NONE:
static gl_buffer_index
read_buffer_enum_to_index(const struct gl_context *ctx, GLenum buffer)
{
- buffer = back_to_front_if_single_buffered(ctx->ReadBuffer, buffer);
+ buffer = _mesa_back_to_front_if_single_buffered(ctx->ReadBuffer, buffer);
switch (buffer) {
case GL_FRONT:
extern void
_mesa_update_draw_buffers(struct gl_context *ctx);
+extern GLenum
+_mesa_back_to_front_if_single_buffered(const struct gl_framebuffer *fb,
+ GLenum buffer);
+
void GLAPIENTRY
_mesa_ReadBuffer_no_error(GLenum mode);