glapi / teximage: implement EGLImageTargetTexStorageEXT
[mesa.git] / src / mesa / main / buffers.c
index f6a347911c774bc355e64bb2053f614fe558c02d..5dc00116ead04ac020e97cee355b7cde331f7b74 100644 (file)
@@ -85,9 +85,9 @@ supported_buffer_bitmask(const struct gl_context *ctx,
    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
@@ -136,7 +136,7 @@ back_to_front_if_single_buffered(const struct gl_framebuffer *fb,
 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:
@@ -201,7 +201,7 @@ draw_buffer_enum_to_bitmask(const struct gl_context *ctx, GLenum buffer)
 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: