diff options
author | Timothy Arceri <[email protected]> | 2018-04-27 10:03:56 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-04-27 10:09:10 +1000 |
commit | 410f901beed8f6f041716396b1f27fd61518e231 (patch) | |
tree | 012816750620380a6b3e49d1177b42b4f26cd09d /src/mesa/main/buffers.c | |
parent | b695a7bd8e5bfea4708661b3d941c69a37d21ebb (diff) |
mesa: drop the buffer mode param from the DrawBuffer driver function
No drivers used it.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa/main/buffers.c')
-rw-r--r-- | src/mesa/main/buffers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/main/buffers.c b/src/mesa/main/buffers.c index ba970d87dad..bb856882da2 100644 --- a/src/mesa/main/buffers.c +++ b/src/mesa/main/buffers.c @@ -305,7 +305,7 @@ draw_buffer(struct gl_context *ctx, struct gl_framebuffer *fb, /* Call device driver function only if fb is the bound draw buffer */ if (fb == ctx->DrawBuffer) { if (ctx->Driver.DrawBuffer) - ctx->Driver.DrawBuffer(ctx, buffer); + ctx->Driver.DrawBuffer(ctx); if (ctx->Driver.DrawBufferAllocate) ctx->Driver.DrawBufferAllocate(ctx); } @@ -588,7 +588,7 @@ draw_buffers(struct gl_context *ctx, struct gl_framebuffer *fb, GLsizei n, */ if (fb == ctx->DrawBuffer) { if (ctx->Driver.DrawBuffer) - ctx->Driver.DrawBuffer(ctx, n > 0 ? buffers[0] : GL_NONE); + ctx->Driver.DrawBuffer(ctx); if (ctx->Driver.DrawBufferAllocate) ctx->Driver.DrawBufferAllocate(ctx); } |