mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Remove the use of import within when
This commit is contained in:
Vendored
+2
-2
@@ -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,
|
||||
|
||||
Vendored
+5
-3
@@ -2,6 +2,11 @@ package vendor_gl
|
||||
|
||||
#assert(size_of(bool) == size_of(u8))
|
||||
|
||||
import "core:runtime"
|
||||
import "core:fmt"
|
||||
_ :: runtime
|
||||
_ :: fmt
|
||||
|
||||
when !GL_DEBUG {
|
||||
// VERSION_1_0
|
||||
CullFace :: proc "c" (mode: u32) { impl_CullFace(mode) }
|
||||
@@ -756,9 +761,6 @@ when !GL_DEBUG {
|
||||
MultiDrawElementsIndirectCount :: proc "c" (mode: i32, type: i32, indirect: [^]DrawElementsIndirectCommand, drawcount: i32, maxdrawcount, stride: i32) { impl_MultiDrawElementsIndirectCount(mode, type, indirect, drawcount, maxdrawcount, stride) }
|
||||
PolygonOffsetClamp :: proc "c" (factor, units, clamp: f32) { impl_PolygonOffsetClamp(factor, units, clamp) }
|
||||
} else {
|
||||
import "core:runtime"
|
||||
import "core:fmt"
|
||||
|
||||
debug_helper :: proc"c"(from_loc: runtime.Source_Code_Location, num_ret: int, args: ..any, loc := #caller_location) {
|
||||
context = runtime.default_context()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user