Cleaned up some code formatting.

This commit is contained in:
Alex Szpakowski 2015-12-18 00:49:27 -04:00
parent cb15bb4cfa
commit 4026980917

View File

@ -669,19 +669,19 @@ WIN_GL_CreateContext(_THIS, SDL_Window * window)
int iattr = 4; int iattr = 4;
/* SDL profile bits match WGL profile bits */ /* SDL profile bits match WGL profile bits */
if( _this->gl_config.profile_mask != 0 ) { if (_this->gl_config.profile_mask != 0) {
attribs[iattr++] = WGL_CONTEXT_PROFILE_MASK_ARB; attribs[iattr++] = WGL_CONTEXT_PROFILE_MASK_ARB;
attribs[iattr++] = _this->gl_config.profile_mask; attribs[iattr++] = _this->gl_config.profile_mask;
} }
/* SDL flags match WGL flags */ /* SDL flags match WGL flags */
if( _this->gl_config.flags != 0 ) { if (_this->gl_config.flags != 0) {
attribs[iattr++] = WGL_CONTEXT_FLAGS_ARB; attribs[iattr++] = WGL_CONTEXT_FLAGS_ARB;
attribs[iattr++] = _this->gl_config.flags; attribs[iattr++] = _this->gl_config.flags;
} }
/* only set if wgl extension is available */ /* only set if wgl extension is available */
if( _this->gl_data->HAS_WGL_ARB_context_flush_control ) { if (_this->gl_data->HAS_WGL_ARB_context_flush_control) {
attribs[iattr++] = WGL_CONTEXT_RELEASE_BEHAVIOR_ARB; attribs[iattr++] = WGL_CONTEXT_RELEASE_BEHAVIOR_ARB;
attribs[iattr++] = _this->gl_config.release_behavior ? attribs[iattr++] = _this->gl_config.release_behavior ?
WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB : WGL_CONTEXT_RELEASE_BEHAVIOR_FLUSH_ARB :