Skip to content
This repository was archived by the owner on Sep 23, 2025. It is now read-only.

Commit 68ee5d0

Browse files
committed
Fix[renderer]: add more OpenGL aliases for tinygl4angle
Hope to fix 1.21.5 crashing issue
1 parent 3b61a1b commit 68ee5d0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Natives/external/gl4es/tinygl4angle.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#define AliasDecl(NAME, EXT) \
2020
asm(".global _"# NAME "\n_" #NAME ": b _" #NAME #EXT);
2121

22+
#define AliasDeclPriv(NAME) \
23+
asm(".global _gl"# NAME "\n_gl" #NAME ": b _GL_" #NAME);
24+
2225
// Core OpenGL 2.0
2326
AliasDecl(glGetTexImage, ANGLE)
2427
AliasDecl(glMapBuffer, OES)
@@ -37,6 +40,10 @@ AliasDecl(glPushDebugGroup, KHR)
3740
AliasDecl(glBindFragDataLocation, EXT)
3841
AliasDecl(glBindFragDataLocationIndexed, EXT)
3942

43+
// Hidden functions
44+
AliasDeclPriv(DrawBuffer)
45+
AliasDeclPriv(PolygonMode)
46+
4047
int proxy_width, proxy_height, proxy_intformat, maxTextureSize;
4148

4249
void(*gles_glCopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);

0 commit comments

Comments
 (0)