Cleaned up some code formatting.
authorAlex Szpakowski <slime73@gmail.com>
Fri, 18 Dec 2015 00:49:27 -0400
changeset 9961a66dd6fd112c
parent 9960 a20484c998da
child 9962 73a2ce1cdc02
Cleaned up some code formatting.
src/video/windows/SDL_windowsopengl.c
     1.1 --- a/src/video/windows/SDL_windowsopengl.c	Fri Dec 11 16:41:59 2015 -0400
     1.2 +++ b/src/video/windows/SDL_windowsopengl.c	Fri Dec 18 00:49:27 2015 -0400
     1.3 @@ -666,29 +666,29 @@
     1.4                  WGL_CONTEXT_MINOR_VERSION_ARB, _this->gl_config.minor_version,
     1.5                  0
     1.6              };
     1.7 -        int iattr = 4;
     1.8 +            int iattr = 4;
     1.9  
    1.10 -        /* SDL profile bits match WGL profile bits */
    1.11 -        if( _this->gl_config.profile_mask != 0 ) {
    1.12 -            attribs[iattr++] = WGL_CONTEXT_PROFILE_MASK_ARB;
    1.13 -        attribs[iattr++] = _this->gl_config.profile_mask;
    1.14 -        }
    1.15 +            /* SDL profile bits match WGL profile bits */
    1.16 +            if (_this->gl_config.profile_mask != 0) {
    1.17 +                attribs[iattr++] = WGL_CONTEXT_PROFILE_MASK_ARB;
    1.18 +                attribs[iattr++] = _this->gl_config.profile_mask;
    1.19 +            }
    1.20  
    1.21 -        /* SDL flags match WGL flags */
    1.22 -        if( _this->gl_config.flags != 0 ) {
    1.23 -            attribs[iattr++] = WGL_CONTEXT_FLAGS_ARB;
    1.24 -        attribs[iattr++] = _this->gl_config.flags;
    1.25 -        }
    1.26 +            /* SDL flags match WGL flags */
    1.27 +            if (_this->gl_config.flags != 0) {
    1.28 +                attribs[iattr++] = WGL_CONTEXT_FLAGS_ARB;
    1.29 +                attribs[iattr++] = _this->gl_config.flags;
    1.30 +            }
    1.31  
    1.32 -        /* only set if wgl extension is available */
    1.33 -        if( _this->gl_data->HAS_WGL_ARB_context_flush_control ) {
    1.34 -            attribs[iattr++] = WGL_CONTEXT_RELEASE_BEHAVIOR_ARB;
    1.35 -            attribs[iattr++] = _this->gl_config.release_behavior ?
    1.36 +            /* only set if wgl extension is available */
    1.37 +            if (_this->gl_data->HAS_WGL_ARB_context_flush_control) {
    1.38 +                attribs[iattr++] = WGL_CONTEXT_RELEASE_BEHAVIOR_ARB;
    1.39 +                attribs[iattr++] = _this->gl_config.release_behavior ?
    1.40                                      WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB :
    1.41                                      WGL_CONTEXT_RELEASE_BEHAVIOR_NONE_ARB;
    1.42 -        }
    1.43 +            }
    1.44  
    1.45 -        attribs[iattr++] = 0;
    1.46 +            attribs[iattr++] = 0;
    1.47  
    1.48              /* Create the GL 3.x context */
    1.49              context = wglCreateContextAttribsARB(hdc, share_context, attribs);