src/video/x11/SDL_x11opengl.c
changeset 7462 66b536503733
parent 7413 30d42f6f2e8d
child 7512 462839f2f408
--- a/src/video/x11/SDL_x11opengl.c	Sun Jul 14 21:30:16 2013 -0400
+++ b/src/video/x11/SDL_x11opengl.c	Mon Jul 15 01:12:15 2013 -0400
@@ -383,7 +383,7 @@
     /* Setup our GLX attributes according to the gl_config. */
     if( for_FBConfig ) {
         attribs[i++] = GLX_RENDER_TYPE;
-    attribs[i++] = GLX_RGBA_BIT;
+        attribs[i++] = GLX_RGBA_BIT;
     } else {
         attribs[i++] = GLX_RGBA;
     }
@@ -401,8 +401,9 @@
 
     if (_this->gl_config.double_buffer) {
         attribs[i++] = GLX_DOUBLEBUFFER;
-    if( for_FBConfig )
-        attribs[i++] = True;
+        if( for_FBConfig ) {
+            attribs[i++] = True;
+        }
     }
 
     attribs[i++] = GLX_DEPTH_SIZE;
@@ -435,8 +436,9 @@
 
     if (_this->gl_config.stereo) {
         attribs[i++] = GLX_STEREO;
-    if( for_FBConfig )
-        attribs[i++] = True;
+        if( for_FBConfig ) {
+            attribs[i++] = True;
+        }
     }
 
     if (_this->gl_config.multisamplebuffers) {