mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +00:00
internal/glimpl: hook up glTexStorage2D on iOS
The glTexStorage2D is part of OpenGL ES 3, but wasn't its function pointer wasn't initialized on iOS. Fixes a crash on startup on iOS devices and simulators. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -152,6 +152,7 @@ __attribute__((constructor)) static void gio_loadGLFunctions() {
|
||||
_glEndQuery = glEndQuery;
|
||||
_glGenQueries = glGenQueries;
|
||||
_glGetQueryObjectuiv = glGetQueryObjectuiv;
|
||||
_glTexStorage2D = glTexStorage2D;
|
||||
#endif
|
||||
_glBindBufferBase = glBindBufferBase;
|
||||
_glGetUniformBlockIndex = glGetUniformBlockIndex;
|
||||
|
||||
Reference in New Issue
Block a user