diff options
author | Laura Ekstrand <[email protected]> | 2015-02-06 10:34:24 -0800 |
---|---|---|
committer | Fredrik Höglund <[email protected]> | 2015-05-14 15:48:15 +0200 |
commit | f8fd8dfee8647a3bd2215fce49626953ecdbdbec (patch) | |
tree | 7546bbafb2e059e1a4e2d08d9c5027b74fa03a26 /src/mesa/main/context.c | |
parent | 9f1db78a83feebefb9e1ef889b3b6b0532482c14 (diff) |
main: Refactor _mesa_drawbuffers.
[Fredrik: Whitespace fix]
Reviewed-by: Fredrik Höglund <[email protected]>
Signed-off-by: Fredrik Höglund <[email protected]>
Diffstat (limited to 'src/mesa/main/context.c')
-rw-r--r-- | src/mesa/main/context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c index 0a192de8c0a..279716a83d5 100644 --- a/src/mesa/main/context.c +++ b/src/mesa/main/context.c @@ -1565,7 +1565,8 @@ handle_first_current(struct gl_context *ctx) else buffer = GL_FRONT; - _mesa_drawbuffers(ctx, 1, &buffer, NULL /* destMask */); + _mesa_drawbuffers(ctx, ctx->DrawBuffer, 1, &buffer, + NULL /* destMask */); } if (ctx->ReadBuffer != _mesa_get_incomplete_framebuffer()) { |