aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2025-02-04 17:06:05 +0000
committergingerBill <bill@gingerbill.org>2025-02-04 17:06:05 +0000
commit06902818bfa126c57e1e360f99244fcaf8cd4401 (patch)
treea8a067e50d43d18bf91938db6443ac6af14d3241
parent0376061a79c971a3f26dade8502a5765222adb9a (diff)
Add `gl_set_proc_address`
-rw-r--r--vendor/sdl3/sdl3_video.odin6
1 files changed, 6 insertions, 0 deletions
diff --git a/vendor/sdl3/sdl3_video.odin b/vendor/sdl3/sdl3_video.odin
index b7cfab726..13952a8cd 100644
--- a/vendor/sdl3/sdl3_video.odin
+++ b/vendor/sdl3/sdl3_video.odin
@@ -455,4 +455,10 @@ foreign lib {
GL_GetSwapInterval :: proc(interval: ^c.int) -> bool ---
GL_SwapWindow :: proc(window: ^Window) -> bool ---
GL_DestroyContext :: proc(ctx: GLContext) -> bool ---
+}
+
+
+// Used by vendor:OpenGL
+gl_set_proc_address :: proc(p: rawptr, name: cstring) {
+ (^FunctionPointer)(p)^ = GL_GetProcAddress(name)
} \ No newline at end of file