Remove the use of import within when

This commit is contained in:
gingerBill
2023-08-04 15:54:44 +01:00
parent 3323d5c76c
commit 9aed26a234
10 changed files with 43 additions and 41 deletions
+2 -2
View File
@@ -5,7 +5,9 @@ package vendor_gl
import "core:os"
import "core:fmt"
import "core:strings"
import "core:runtime"
_ :: fmt
_ :: runtime
Shader_Type :: enum i32 {
NONE = 0x0000,
@@ -47,8 +49,6 @@ get_last_error_message :: proc() -> (compile_message: string, compile_type: Shad
// except for calling differently named GL functions
// it's a bit ugly looking, but meh
when GL_DEBUG {
import "core:runtime"
@private
check_error :: proc(
id: u32, type: Shader_Type, status: u32,