From 8882e5cc84589f1caaef25c32a2d9e66beb764d4 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Tue, 11 Aug 2026 20:18:19 +0300 Subject: [PATCH] functions: add a couple of missing stubs The SDL3 test program testgl[1] loads all the GL functions declared in the render backend[2] and fails to start if any of these fail. Exporting these two functions allows the testgl program to run. [1]: https://github.com/libsdl-org/SDL/blob/main/test/testgl.c [2]: https://github.com/libsdl-org/SDL/blob/main/src/render/opengl/SDL_glfuncs.h --- src/functions.c | 2 ++ src/gc_gl.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/functions.c b/src/functions.c index 457dfed..832f013 100644 --- a/src/functions.c +++ b/src/functions.c @@ -51,7 +51,9 @@ static const OgxProcMap s_proc_map[] = { PROC(glBindBuffer), /* OpenGL 1.5 */ PROC(glBindTexture), PROC(glBitmap), + PROC(glBlendEquation), PROC(glBlendFunc), + PROC(glBlendFuncSeparate), PROC(glBufferData), /* OpenGL 1.5 */ PROC(glBufferSubData), /* OpenGL 1.5 */ PROC(glCallList), diff --git a/src/gc_gl.c b/src/gc_gl.c index 2af568e..9424ffc 100644 --- a/src/gc_gl.c +++ b/src/gc_gl.c @@ -2826,6 +2826,8 @@ void glOrtho(GLdouble left, GLdouble right, GLdouble bottom, GLdouble top, GLdou // NOT GOING TO IMPLEMENT void glBlendEquation(GLenum mode) {} +void glBlendFuncSeparate(GLenum sfactorRGB, GLenum dfactorRGB, + GLenum sfactorAlpha, GLenum dfactorAlpha) {} void glShadeModel(GLenum mode) {} // In theory we don't have GX equivalent? void glHint(GLenum target, GLenum mode) {}