diff options
author | Jose Fonseca <[email protected]> | 2016-01-08 13:59:16 +0000 |
---|---|---|
committer | Jose Fonseca <[email protected]> | 2016-01-08 20:06:59 +0000 |
commit | e378184d9c31a4b8f67cf1b75f401f2d5c54782a (patch) | |
tree | e0b40f1e89b27a8b27da69adfa483da1ed4f7f73 /src/mesa | |
parent | 6613042c4ed4d8ef64fa21ad19a2131dae2f4702 (diff) |
mesa/main: Avoid `void function returning a value` warning.
Trivial.
Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/main/shaderimage.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/main/shaderimage.c b/src/mesa/main/shaderimage.c index c4ebf4201fb..040e9fd6e3c 100644 --- a/src/mesa/main/shaderimage.c +++ b/src/mesa/main/shaderimage.c @@ -738,8 +738,10 @@ _mesa_MemoryBarrierByRegion(GLbitfield barriers) * That is, if barriers is the special value GL_ALL_BARRIER_BITS, then all * barriers allowed by glMemoryBarrierByRegion should be activated." */ - if (barriers == GL_ALL_BARRIER_BITS) - return ctx->Driver.MemoryBarrier(ctx, all_allowed_bits); + if (barriers == GL_ALL_BARRIER_BITS) { + ctx->Driver.MemoryBarrier(ctx, all_allowed_bits); + return; + } /* From section 7.11.2 of the OpenGL ES 3.1 specification: * |