aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-05-20 11:00:06 +0200
committerAndre Weissflog <floooh@gmail.com>2019-05-20 11:00:06 +0200
commit0f02d28cb8816ffdcf03e79a80baac24348a2760 (patch)
tree7da00505bfb87583b88e1a3c89779cf7bed43098
parentc4d8dcdb41c1d6cf3493c1d9569ebb4b649a138c (diff)
minor coding-style tweaks
-rw-r--r--sokol_gfx.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index cf59fc29..e1c13a26 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -4020,7 +4020,7 @@ _SOKOL_PRIVATE void _sg_setup_backend(const sg_desc* desc) {
glGetIntegerv(GL_NUM_EXTENSIONS, &num_ext);
for (int i = 0; i < num_ext; i++) {
const char* ext = (const char*) glGetStringi(GL_EXTENSIONS, i);
- if( ext ) {
+ if (ext) {
if (strstr(ext, "_texture_compression_s3tc")) {
_sg.gl.features[SG_FEATURE_TEXTURE_COMPRESSION_DXT] = true;
continue;
@@ -4033,7 +4033,7 @@ _SOKOL_PRIVATE void _sg_setup_backend(const sg_desc* desc) {
}
#elif defined(SOKOL_GLES3)
const char* ext = (const char*) glGetString(GL_EXTENSIONS);
- if( ext ) {
+ if (ext) {
if (!_sg.gl.gles2) {
_sg.gl.features[SG_FEATURE_INSTANCING] = true;
_sg.gl.features[SG_FEATURE_TEXTURE_FLOAT] = true;
@@ -4063,7 +4063,7 @@ _SOKOL_PRIVATE void _sg_setup_backend(const sg_desc* desc) {
}
#elif defined(SOKOL_GLES2)
const char* ext = (const char*) glGetString(GL_EXTENSIONS);
- if( ext ) {
+ if (ext) {
_sg.gl.features[SG_FEATURE_INSTANCING] =
strstr(ext, "_instanced_arrays");
_sg.gl.features[SG_FEATURE_TEXTURE_FLOAT] =