Mesa (master): mesa: add some braces in _mesa_make_current()

Brian Paul brianp at kemper.freedesktop.org
Fri Jul 7 18:17:59 UTC 2017


Module: Mesa
Branch: master
Commit: 1b3cbcc7beded588a53d7c67bf0e25db05bf8d1e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b3cbcc7beded588a53d7c67bf0e25db05bf8d1e

Author: Brian Paul <brianp at vmware.com>
Date:   Thu Jul  6 11:59:55 2017 -0600

mesa: add some braces in _mesa_make_current()

Slightly better readability.

---

 src/mesa/main/context.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index 3057a92eca..fe527a0ae2 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -1663,8 +1663,9 @@ _mesa_make_current( struct gl_context *newCtx,
        /* make sure this context is valid for flushing */
        curCtx != newCtx &&
        curCtx->Const.ContextReleaseBehavior ==
-       GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH)
+       GL_CONTEXT_RELEASE_BEHAVIOR_FLUSH) {
       _mesa_flush(curCtx);
+   }
 
    /* We used to call _glapi_check_multithread() here.  Now do it in drivers */
 




More information about the mesa-commit mailing list