summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2017-01-01 23:44:25 -0500
committerIlia Mirkin <[email protected]>2017-01-16 21:13:08 -0500
commit376316e963b6636bb3c3900b3918a197c5e632aa (patch)
tree53866c9f85c4e63f20365619c3a107b0a537107d /src
parent2dd4cdeb4ee7b93d57d317175e3e3483dbf82aaf (diff)
mesa: allow BlendBarrier to be used without support for full fb fetch
The extension spec is not currently published, so it's a bit premature to require it for BlendBarrier usage. Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/barrier.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/barrier.c b/src/mesa/main/barrier.c
index 2f5b4515792..e55d13cb6b3 100644
--- a/src/mesa/main/barrier.c
+++ b/src/mesa/main/barrier.c
@@ -114,7 +114,8 @@ _mesa_BlendBarrier(void)
{
GET_CURRENT_CONTEXT(ctx);
- if (!ctx->Extensions.MESA_shader_framebuffer_fetch_non_coherent) {
+ if (!ctx->Extensions.MESA_shader_framebuffer_fetch_non_coherent &&
+ !ctx->Extensions.KHR_blend_equation_advanced) {
_mesa_error(ctx, GL_INVALID_OPERATION,
"glBlendBarrier(not supported)");
return;