From e9865d4f97ddafdd3910cd25ab374a60e5d635f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matheus=20Catarino=20Fran=C3=A7a?= Date: Sun, 25 Feb 2024 13:08:39 -0300 Subject: [PATCH] updated (https://github.com/floooh/sokol/commit/6a13a96d58a1d2ad88161d9dddb7843e541803a9) - emsdk 3.1.53 to 3.1.54 --- build.zig | 2 ++ build.zig.zon | 4 ++-- src/sokol/c/sokol_gfx.h | 5 +++++ 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build.zig b/build.zig index cab011b..49fed95 100644 --- a/build.zig +++ b/build.zig @@ -696,6 +696,8 @@ pub fn emLinkStep(b: *Build, options: EmLinkOptions) !*Build.Step.Run { try emcc_cmd.append(emcc_path); if (options.optimize == .Debug) { try emcc_cmd.append("-Og"); + try emcc_cmd.append("-sSAFE_HEAP=1"); + try emcc_cmd.append("-sSTACK_OVERFLOW_CHECK=1"); } else { try emcc_cmd.append("-sASSERTIONS=0"); if (options.optimize == .ReleaseSmall) { diff --git a/build.zig.zon b/build.zig.zon index a779660..37bf7cf 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -10,8 +10,8 @@ }, .dependencies = .{ .emsdk = .{ - .url = "git+https://github.com/emscripten-core/emsdk#2aa74907151b2caa9da865fd0d36436fdce792f0", - .hash = "1220500fe26858fc95f2a1166df2ba1a419ab9af3219383b0e57026b0928739c8e57", + .url = "git+https://github.com/emscripten-core/emsdk#c18280c8f3f8f088b4337f0f6a5fdb2be0d67179", + .hash = "12203d61e8947f25993a86b4d73e2d91b4c1d96f1aa07c581b7dffba7cb5ca91bc35", }, .wasmd = .{ .url = "git+https://github.com/kassane/wasmd#067e21e29aea24ec936d6c6b859f7c9a79894f78", diff --git a/src/sokol/c/sokol_gfx.h b/src/sokol/c/sokol_gfx.h index 73103e6..cec6af4 100644 --- a/src/sokol/c/sokol_gfx.h +++ b/src/sokol/c/sokol_gfx.h @@ -6540,8 +6540,13 @@ _SOKOL_PRIVATE void _sg_dummy_update_image(_sg_image_t* img, const sg_image_data // optional GL loader for win32 #if defined(_SOKOL_USE_WIN32_GL_LOADER) +#ifndef SG_GL_FUNCS_EXT +#define SG_GL_FUNCS_EXT +#endif + // X Macro list of GL function names and signatures #define _SG_GL_FUNCS \ + SG_GL_FUNCS_EXT \ _SG_XMACRO(glBindVertexArray, void, (GLuint array)) \ _SG_XMACRO(glFramebufferTextureLayer, void, (GLenum target, GLenum attachment, GLuint texture, GLint level, GLint layer)) \ _SG_XMACRO(glGenFramebuffers, void, (GLsizei n, GLuint * framebuffers)) \