summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/blend.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2016-06-29 21:53:06 -0700
committerKenneth Graunke <[email protected]>2016-08-25 19:22:10 -0700
commit1bf9b2a6008552f5fdb8908c24c446fd7261efdd (patch)
tree42a1df93a23368b5b33c4a8b8251c689e5493ce9 /src/mesa/main/blend.c
parentc2b10cabed6468b998a9c4d0ada7953d93311029 (diff)
mesa: Implement GL_KHR_blend_equation_advanced_coherent.
This adds the extension enable (so drivers can advertise it) and the extra boolean state flag, GL_BLEND_ADVANCED_COHERENT_KHR, which can be set to request coherent blending. Signed-off-by: Kenneth Graunke <[email protected]> Reviewed-by: Francisco Jerez <[email protected]>
Diffstat (limited to 'src/mesa/main/blend.c')
-rw-r--r--src/mesa/main/blend.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/blend.c b/src/mesa/main/blend.c
index de6d3c48e05..ad79ee011d2 100644
--- a/src/mesa/main/blend.c
+++ b/src/mesa/main/blend.c
@@ -1039,6 +1039,8 @@ void _mesa_init_color( struct gl_context * ctx )
* if EGL_KHR_gl_colorspace has been used to request sRGB.
*/
ctx->Color.sRGBEnabled = _mesa_is_gles(ctx);
+
+ ctx->Color.BlendCoherent = true;
}
/*@}*/