Reduce ogs-blue/ver-mac to blue background (#6)

This commit was merged in pull request #6.
This commit is contained in:
kornerr committed 2026-10-26 04:26:17 +01:00
1 parent fb28dd55c7
commit 37c4e6f442
79 files changed
+902 -504

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include <dlfcn.h>
#include "raybriAux.h"
#include "raybriConst.h"
#include <stddef.h>
// raylib is built as a static/dynamic library with GLFW baked in, but we never
// call InitWindow(). Instead we render into an OpenGL context owned by the
// macOS app, so we must supply the OpenGL entry point loader ourselves.
void *raybriGLLoader(const char *name) {
static void *handle = NULL;
if (handle == NULL) {
handle = dlopen(RAYBRI_MAC_GL, RTLD_LAZY | RTLD_LOCAL);
}
if (handle == NULL) {
return NULL;
}
return dlsym(handle, name);
}