diff options
author | Brian Paul <[email protected]> | 2016-01-13 16:20:09 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2016-01-14 09:08:21 -0700 |
commit | 6470435190ffd9b82ab53da7e857186b9b322516 (patch) | |
tree | c0713aa74dfeb1de4572384e60cb7ff6be6985f4 /src | |
parent | e976860638c6fb9f69b9cf3a82acaba55c08e274 (diff) |
st/mesa: add check for color logicop in blit_copy_pixels()
We check that a bunch of raster operations are disabled in
blit_copy_pixels(). We also need to check that color logicop is
disabled.
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/state_tracker/st_cb_drawpixels.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_drawpixels.c b/src/mesa/state_tracker/st_cb_drawpixels.c index 7ed52dd2600..04a9de06520 100644 --- a/src/mesa/state_tracker/st_cb_drawpixels.c +++ b/src/mesa/state_tracker/st_cb_drawpixels.c @@ -1302,6 +1302,7 @@ blit_copy_pixels(struct gl_context *ctx, GLint srcx, GLint srcy, ctx->_ImageTransferState == 0x0 && !ctx->Color.BlendEnabled && !ctx->Color.AlphaEnabled && + (!ctx->Color.ColorLogicOpEnabled || ctx->Color.LogicOp == GL_COPY) && !ctx->Depth.Test && !ctx->Fog.Enabled && !ctx->Stencil.Enabled && |