aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <gingerBill@users.noreply.github.com>2024-04-10 12:01:08 +0100
committerGitHub <noreply@github.com>2024-04-10 12:01:08 +0100
commit0f39b9ef22c4b73448bc0ccc58369ea36723103e (patch)
treeee0c2bb523ea47ba359bfaa47bb56e347f952d41
parentaf67cc7afeb32e3945ec3ed1d9f366b68ae90f35 (diff)
parentc644f795735816d35f382b1c8dfc64d67815e533 (diff)
Merge pull request #3403 from iciuperca/master
Avoid loop index shadowing in vendor:OpenGL
-rw-r--r--vendor/OpenGL/wrappers.odin8
1 files changed, 4 insertions, 4 deletions
diff --git a/vendor/OpenGL/wrappers.odin b/vendor/OpenGL/wrappers.odin
index 550ba3cfa..a04df6987 100644
--- a/vendor/OpenGL/wrappers.odin
+++ b/vendor/OpenGL/wrappers.odin
@@ -787,8 +787,8 @@ when !GL_DEBUG {
fmt.printf(" call: gl%s(", loc.procedure)
{
// add input arguments
- for arg, i in args[num_ret:] {
- if i > 0 { fmt.printf(", ") }
+ for arg, arg_index in args[num_ret:] {
+ if arg_index > 0 { fmt.printf(", ") }
if v, ok := arg.(u32); ok { // TODO: Assumes all u32 are GLenum (they're not, GLbitfield and GLuint are also mapped to u32), fix later by better typing
if err == .INVALID_ENUM {
@@ -806,8 +806,8 @@ when !GL_DEBUG {
fmt.printf(") -> %v \n", args[0])
} else if num_ret > 1 {
fmt.printf(") -> (")
- for arg, i in args[1:num_ret] {
- if i > 0 { fmt.printf(", ") }
+ for arg, arg_index in args[1:num_ret] {
+ if arg_index > 0 { fmt.printf(", ") }
fmt.printf("%v", arg)
}
fmt.printf(")\n")