mesa/main: Avoid `void function returning a value` warning.
authorJose Fonseca <jfonseca@vmware.com>
Fri, 8 Jan 2016 13:59:16 +0000 (13:59 +0000)
committerJose Fonseca <jfonseca@vmware.com>
Fri, 8 Jan 2016 20:06:59 +0000 (20:06 +0000)
Trivial.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/shaderimage.c

index c4ebf4201fbf8efd50d54aa8d9318f3d01fbc85c..040e9fd6e3ce0ea75706787c50055f9c06995a35 100644 (file)
@@ -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:
        *