diff options
| author | gingerBill <bill@gingerbill.org> | 2024-06-29 19:50:51 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-06-29 19:50:51 +0100 |
| commit | e296d6fb902083fac534bdd4c804e6dbad2fc458 (patch) | |
| tree | 18e0875791d202dc4dde1d148c0786494e2b2b14 /vendor/OpenGL | |
| parent | 90244a0849afe9f17e011dc8c3bae571c9f5bb26 (diff) | |
Fix loads of indentation issues with mixing spaces and tabs
Diffstat (limited to 'vendor/OpenGL')
| -rw-r--r-- | vendor/OpenGL/wrappers.odin | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/vendor/OpenGL/wrappers.odin b/vendor/OpenGL/wrappers.odin index 4aaec4adc..1eb8fc72f 100644 --- a/vendor/OpenGL/wrappers.odin +++ b/vendor/OpenGL/wrappers.odin @@ -781,17 +781,17 @@ when !GL_DEBUG { { // add input arguments for arg, arg_index in args[num_ret:] { - if arg_index > 0 { fmt.printf(", ") } + 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 { - fmt.printf("INVALID_ENUM=%d", v) + 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 { + fmt.printf("INVALID_ENUM=%d", v) + } else { + fmt.printf("GL_%v=%d", GL_Enum(v), v) + } } else { - fmt.printf("GL_%v=%d", GL_Enum(v), v) + fmt.printf("%v", arg) } - } else { - fmt.printf("%v", arg) - } } // add return arguments @@ -810,7 +810,7 @@ when !GL_DEBUG { } // add location - fmt.printf(" in: %s(%d:%d)\n", from_loc.file_path, from_loc.line, from_loc.column) + fmt.printf(" in: %s(%d:%d)\n", from_loc.file_path, from_loc.line, from_loc.column) } } |