Fix[renderer]: add more OpenGL aliases for tinygl4angle
Hope to fix 1.21.5 crashing issue
This commit is contained in:
1 parent
3b61a1ba65
commit
68ee5d09cd
1 file changed
+7
+7
@@ -19,6 +19,9 @@
|
||||
#define AliasDecl(NAME, EXT) \
|
||||
asm(".global _"# NAME "\n_" #NAME ": b _" #NAME #EXT);
|
||||
|
||||
#define AliasDeclPriv(NAME) \
|
||||
asm(".global _gl"# NAME "\n_gl" #NAME ": b _GL_" #NAME);
|
||||
|
||||
// Core OpenGL 2.0
|
||||
AliasDecl(glGetTexImage, ANGLE)
|
||||
AliasDecl(glMapBuffer, OES)
|
||||
@@ -37,6 +40,10 @@ AliasDecl(glPushDebugGroup, KHR)
|
||||
AliasDecl(glBindFragDataLocation, EXT)
|
||||
AliasDecl(glBindFragDataLocationIndexed, EXT)
|
||||
|
||||
// Hidden functions
|
||||
AliasDeclPriv(DrawBuffer)
|
||||
AliasDeclPriv(PolygonMode)
|
||||
|
||||
int proxy_width, proxy_height, proxy_intformat, maxTextureSize;
|
||||
|
||||
void(*gles_glCopyTexSubImage2D)(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
|
||||
Reference in new issue
Block a user