From d0d6c6c38e557551a79114e11e912c056da8941e Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 21 Jan 2021 11:40:31 +0100 Subject: [PATCH] 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 --- internal/glimpl/gl_unix.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/glimpl/gl_unix.go b/internal/glimpl/gl_unix.go index f59295a6..79e91690 100644 --- a/internal/glimpl/gl_unix.go +++ b/internal/glimpl/gl_unix.go @@ -152,6 +152,7 @@ __attribute__((constructor)) static void gio_loadGLFunctions() { _glEndQuery = glEndQuery; _glGenQueries = glGenQueries; _glGetQueryObjectuiv = glGetQueryObjectuiv; + _glTexStorage2D = glTexStorage2D; #endif _glBindBufferBase = glBindBufferBase; _glGetUniformBlockIndex = glGetUniformBlockIndex;