src/video/windows/SDL_windowsopengl.c
changeset 7191 75360622e65f
parent 7037 3fedf1f25b94
child 7401 698995795574
     1.1 --- a/src/video/windows/SDL_windowsopengl.c	Sat May 18 12:48:50 2013 -0700
     1.2 +++ b/src/video/windows/SDL_windowsopengl.c	Sat May 18 14:17:52 2013 -0700
     1.3 @@ -503,7 +503,7 @@
     1.4      }
     1.5      if (!pixel_format && _this->gl_config.accelerated != 1) {
     1.6          iAttr[-1] = WGL_NO_ACCELERATION_ARB;
     1.7 -	pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs);
     1.8 +    pixel_format = WIN_GL_ChoosePixelFormatARB(_this, iAttribs, fAttribs);
     1.9      }
    1.10      if (!pixel_format) {
    1.11          pixel_format = WIN_GL_ChoosePixelFormat(hdc, &pfd);
    1.12 @@ -530,13 +530,13 @@
    1.13      }
    1.14  
    1.15      if (_this->gl_config.major_version < 3 &&
    1.16 -	_this->gl_config.profile_mask == 0 &&
    1.17 -	_this->gl_config.flags == 0) {
    1.18 +    _this->gl_config.profile_mask == 0 &&
    1.19 +    _this->gl_config.flags == 0) {
    1.20          /* Create legacy context */
    1.21          context = _this->gl_data->wglCreateContext(hdc);
    1.22 -	if( share_context != 0 ) {
    1.23 +    if( share_context != 0 ) {
    1.24              _this->gl_data->wglShareLists(share_context, context);
    1.25 -	}
    1.26 +    }
    1.27      } else {
    1.28          PFNWGLCREATECONTEXTATTRIBSARBPROC wglCreateContextAttribsARB;
    1.29          HGLRC temp_context = _this->gl_data->wglCreateContext(hdc);
    1.30 @@ -558,27 +558,27 @@
    1.31              SDL_SetError("GL 3.x is not supported");
    1.32              context = temp_context;
    1.33          } else {
    1.34 -	    /* max 8 attributes plus terminator */
    1.35 +        /* max 8 attributes plus terminator */
    1.36              int attribs[9] = {
    1.37                  WGL_CONTEXT_MAJOR_VERSION_ARB, _this->gl_config.major_version,
    1.38                  WGL_CONTEXT_MINOR_VERSION_ARB, _this->gl_config.minor_version,
    1.39                  0
    1.40              };
    1.41 -	    int iattr = 4;
    1.42 +        int iattr = 4;
    1.43  
    1.44 -	    /* SDL profile bits match WGL profile bits */
    1.45 -	    if( _this->gl_config.profile_mask != 0 ) {
    1.46 -	        attribs[iattr++] = WGL_CONTEXT_PROFILE_MASK_ARB;
    1.47 -		attribs[iattr++] = _this->gl_config.profile_mask;
    1.48 -	    }
    1.49 +        /* SDL profile bits match WGL profile bits */
    1.50 +        if( _this->gl_config.profile_mask != 0 ) {
    1.51 +            attribs[iattr++] = WGL_CONTEXT_PROFILE_MASK_ARB;
    1.52 +        attribs[iattr++] = _this->gl_config.profile_mask;
    1.53 +        }
    1.54  
    1.55 -	    /* SDL flags match WGL flags */
    1.56 -	    if( _this->gl_config.flags != 0 ) {
    1.57 -	        attribs[iattr++] = WGL_CONTEXT_FLAGS_ARB;
    1.58 -		attribs[iattr++] = _this->gl_config.flags;
    1.59 -	    }
    1.60 +        /* SDL flags match WGL flags */
    1.61 +        if( _this->gl_config.flags != 0 ) {
    1.62 +            attribs[iattr++] = WGL_CONTEXT_FLAGS_ARB;
    1.63 +        attribs[iattr++] = _this->gl_config.flags;
    1.64 +        }
    1.65  
    1.66 -	    attribs[iattr++] = 0;
    1.67 +        attribs[iattr++] = 0;
    1.68  
    1.69              /* Create the GL 3.x context */
    1.70              context = wglCreateContextAttribsARB(hdc, share_context, attribs);