summaryrefslogtreecommitdiff
path: root/src/mesa/main/buffers.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r--src/mesa/main/buffers.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c
index 5dc00116ead..9be0a6f1180 100644
--- a/src/mesa/main/buffers.c
+++ b/src/mesa/main/buffers.c
@@ -288,7 +288,7 @@ draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb,
{
GLbitfield destMask;
- FLUSH_VERTICES(ctx, 0);
+ FLUSH_VERTICES(ctx, 0, GL_COLOR_BUFFER_BIT);
if (MESA_VERBOSE & VERBOSE_API) {
_mesa_debug(ctx, "%s %s\n", caller, _mesa_enum_to_string(buffer));
@@ -435,7 +435,7 @@ draw_buffers(struct gl_context *ctx, struct gl_framebuffer *fb, GLsizei n,
GLbitfield usedBufferMask, supportedMask;
GLbitfield destMask[MAX_DRAW_BUFFERS];
- FLUSH_VERTICES(ctx, 0);
+ FLUSH_VERTICES(ctx, 0, GL_COLOR_BUFFER_BIT);
if (!no_error) {
/* Turns out n==0 is a valid input that should not produce an error.
@@ -733,7 +733,7 @@ _mesa_NamedFramebufferDrawBuffers(GLuint framebuffer, GLsizei n,
static void
updated_drawbuffers(struct gl_context *ctx, struct gl_framebuffer *fb)
{
- FLUSH_VERTICES(ctx, _NEW_BUFFERS);
+ FLUSH_VERTICES(ctx, _NEW_BUFFERS, GL_COLOR_BUFFER_BIT);
if (ctx->API == API_OPENGL_COMPAT && !ctx->Extensions.ARB_ES2_compatibility) {
/* Flag the FBO as requiring validation. */
@@ -900,7 +900,7 @@ read_buffer(struct gl_context *ctx, struct gl_framebuffer *fb,
{
gl_buffer_index srcBuffer;
- FLUSH_VERTICES(ctx, 0);
+ FLUSH_VERTICES(ctx, 0, GL_PIXEL_MODE_BIT);
if (MESA_VERBOSE & VERBOSE_API)
_mesa_debug(ctx, "%s %s\n", caller, _mesa_enum_to_string(buffer));