mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
cogl-blit: Disable blending when using texture render
When using a pipeline and the journal to blit images between framebuffers, it should disable blending. Otherwise it will end up blending the source texture with uninitialised garbage in the destination texture.
This commit is contained in:
parent
54cdb0f59f
commit
25db8d0653
@ -78,6 +78,12 @@ _cogl_blit_texture_render_begin (CoglBlitData *data)
|
||||
cogl_pipeline_set_layer_filters (ctx->blit_texture_pipeline, 0,
|
||||
COGL_PIPELINE_FILTER_NEAREST,
|
||||
COGL_PIPELINE_FILTER_NEAREST);
|
||||
|
||||
/* Disable blending by just directly taking the contents of the
|
||||
source texture */
|
||||
cogl_pipeline_set_blend (ctx->blit_texture_pipeline,
|
||||
"RGBA = ADD(SRC_COLOR, 0)",
|
||||
NULL);
|
||||
}
|
||||
|
||||
pipeline = ctx->blit_texture_pipeline;
|
||||
|
Loading…
Reference in New Issue
Block a user