This commit is contained in:
Михаил Капелько committed 2026-10-25 06:38:42 +03:00
1 parent 7aa7af1be5
commit 9d2c03d3e0
6 files changed
+15 -22

No files matched your search

+2 -4
View File
@@ -1,13 +1,11 @@
#include "raybri.h"
#include "raybriConst.h"
#include "rlgl.h"
#include <dlfcn.h>
#include <stddef.h>
static int sr_width = 1;
static int sr_height = 1;
static int sr_ready = 0;
// raylib is built as a static/dynamic library with GLFW baked in, but we never
@@ -18,7 +16,7 @@ static void *sr_gl_loader(const char *name)
static void *handle = NULL;
if (handle == NULL)
{
handle = dlopen("/System/Library/Frameworks/OpenGL.framework/OpenGL", RTLD_LAZY | RTLD_LOCAL);
handle = dlopen(RAYBRI_MAC_GL, RTLD_LAZY | RTLD_LOCAL);
}
if (handle == NULL) return NULL;
return dlsym(handle, name);