diff options
author | Eric Anholt <eric@anholt.net> | 2014-06-10 14:16:06 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2014-06-13 13:55:42 -0700 |
commit | 28c9c471b2705b4cf8b00729b355b04326960812 (patch) | |
tree | e64b56b6d9aff13dce1395e02dfd2eb27df5e9b3 | |
parent | 4d64234e0512ced15f5c87a0ff2ac9755c592549 (diff) | |
download | libepoxy-28c9c471b2705b4cf8b00729b355b04326960812.tar.gz |
Remove a C99ism from dispatch.
I've decided it's time to accept that building with MSVC 2010 is a way
that people want to use this software.
-rw-r--r-- | src/dispatch_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dispatch_common.c b/src/dispatch_common.c index 4fb8755..b36b639 100644 --- a/src/dispatch_common.c +++ b/src/dispatch_common.c @@ -331,12 +331,13 @@ epoxy_internal_has_gl_extension(const char *ext, bool invalid_op_mode) return epoxy_extension_in_string(exts, ext); } else { int num_extensions; + int i; glGetIntegerv(GL_NUM_EXTENSIONS, &num_extensions); if (num_extensions == 0) return invalid_op_mode; - for (int i = 0; i < num_extensions; i++) { + for (i = 0; i < num_extensions; i++) { const char *gl_ext = (const char *)glGetStringi(GL_EXTENSIONS, i); if (strcmp(ext, gl_ext) == 0) return true; |