[Mesa-dev] [PATCH 1/2] mesa/main: Avoid `void function returning a value` warning.
Brian Paul
brianp at vmware.com
Fri Jan 8 07:12:12 PST 2016
On 01/08/2016 07:08 AM, Jose Fonseca wrote:
> Trivial.
> ---
> src/mesa/main/shaderimage.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/src/mesa/main/shaderimage.c b/src/mesa/main/shaderimage.c
> index c4ebf42..040e9fd 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:
> *
>
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list