1 parent 8b20a50 commit 9222574Copy full SHA for 9222574
1 file changed
src/Raylib.NET.Native/build.zig
@@ -68,12 +68,18 @@ pub fn build(b: *std.Build) !void {
68
else
69
std.builtin.LinkMode.dynamic;
70
71
+ // Determine OpenGL version based on target
72
+ const opengl_version = if (target.result.os.tag == .emscripten)
73
+ rl.OpenglVersion.gles_3
74
+ else
75
+ rl.OpenglVersion.gl_4_3;
76
+
77
// Get raylib options for configuring the build
78
const options = rl.Options{
79
.linkage = linkage,
80
.raygui = true,
81
.linux_display_backend = .Wayland,
- .opengl_version = .gl_4_3,
82
+ .opengl_version = opengl_version,
83
};
84
85
// Build raylib with raygui using raylib's build system
0 commit comments