Skip to content

Commit 6353c46

Browse files
committed
sdl_glimp: minor rewording
1 parent 7317517 commit 6353c46

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/engine/sys/sdl_glimp.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2261,9 +2261,10 @@ static void GLimp_InitExtensions()
22612261

22622262
// made required in OpenGL 1.3
22632263
glConfig.textureCompression = textureCompression_t::TC_NONE;
2264+
22642265
/* ExtFlag_REQUIRED could be turned into ExtFlag_NONE if s3tc-to-rgba is implemented.
22652266
See https://github.com/DaemonEngine/Daemon/pull/738 */
2266-
if( LOAD_EXTENSION( ExtFlag_REQUIRED, EXT_texture_compression_s3tc ) )
2267+
if ( LOAD_EXTENSION( ExtFlag_REQUIRED, EXT_texture_compression_s3tc ) )
22672268
{
22682269
glConfig.textureCompression = textureCompression_t::TC_S3TC;
22692270
}
@@ -2283,6 +2284,8 @@ static void GLimp_InitExtensions()
22832284
glConfig2.textureAnisotropy = std::max( std::min( r_ext_texture_filter_anisotropic.Get(), glConfig2.maxTextureAnisotropy ), 1.0f );
22842285
}
22852286

2287+
// VAO and VBO
2288+
22862289
// made required in OpenGL 3.0
22872290
LOAD_EXTENSION( ExtFlag_REQUIRED | ExtFlag_CORE, ARB_vertex_array_object );
22882291

@@ -2352,7 +2355,6 @@ static void GLimp_InitExtensions()
23522355
}
23532356
}
23542357

2355-
// VAO and VBO
23562358
// made required in OpenGL 3.0
23572359
glConfig2.halfFloatVertexAvailable = LOAD_EXTENSION_WITH_TEST( ExtFlag_CORE, ARB_half_float_vertex, halfFloatVertexEnabled );
23582360

@@ -2362,6 +2364,8 @@ static void GLimp_InitExtensions()
23622364
}
23632365
}
23642366

2367+
// FBO
2368+
23652369
if ( !workaround_glExtension_missingArbFbo_useExtFbo.Get() )
23662370
{
23672371
// made required in OpenGL 3.0
@@ -2394,7 +2398,6 @@ static void GLimp_InitExtensions()
23942398
glFboSetExt();
23952399
}
23962400

2397-
// FBO
23982401
glGetIntegerv( GL_MAX_RENDERBUFFER_SIZE, &glConfig2.maxRenderbufferSize );
23992402
glGetIntegerv( GL_MAX_COLOR_ATTACHMENTS, &glConfig2.maxColorAttachments );
24002403

0 commit comments

Comments
 (0)