summaryrefslogtreecommitdiffstats
path: root/src/glut
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-11-12 00:14:06 +0000
committerBrian Paul <[email protected]>1999-11-12 00:14:06 +0000
commitea895e68394f6a9970b226b589fb722acd3f090b (patch)
tree81b1b0268150c6f12916b544584f32534b07b603 /src/glut
parentd23f90726ae47887dbe65cdd5d7c0a8e52473958 (diff)
added some braces to silence gcc warnings
Diffstat (limited to 'src/glut')
-rw-r--r--src/glut/glx/layerutil.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/glut/glx/layerutil.c b/src/glut/glx/layerutil.c
index 80ee19514f0..26ba0b6029d 100644
--- a/src/glut/glx/layerutil.c
+++ b/src/glut/glx/layerutil.c
@@ -129,26 +129,29 @@ __glutXGetLayerVisualInfo(Display * dpy, long lvinfo_mask,
break;
}
}
- if (lvinfo_mask & VisualLayerMask)
+ if (lvinfo_mask & VisualLayerMask) {
if (overlayInfo == NULL) {
if (lvinfo_template->layer != 0)
continue;
} else if (lvinfo_template->layer != overlayInfo->layer)
continue;
- if (lvinfo_mask & VisualTransparentType)
+ }
+ if (lvinfo_mask & VisualTransparentType) {
if (overlayInfo == NULL) {
if (lvinfo_template->type != None)
continue;
} else if (lvinfo_template->type !=
overlayInfo->transparent_type)
continue;
- if (lvinfo_mask & VisualTransparentValue)
+ }
+ if (lvinfo_mask & VisualTransparentValue) {
if (overlayInfo == NULL)
/* Non-overlay visuals have no sense of
TransparentValue. */
continue;
else if (lvinfo_template->value != overlayInfo->value)
continue;
+ }
layerInfo[count].vinfo = *pVinfo;
if (overlayInfo == NULL) {
layerInfo[count].layer = 0;