From d6859744baf05a5f91dd5d57d9ca4b5a55de4376 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Thu, 13 May 2021 20:37:39 +0200 Subject: [PATCH] internal/gl: unexport GetStringi It's only used for the backwards incompatible macOS GL core profile. Signed-off-by: Elias Naur --- internal/gl/gl_unix.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/internal/gl/gl_unix.go b/internal/gl/gl_unix.go index 287d3f6f..50fbc684 100644 --- a/internal/gl/gl_unix.go +++ b/internal/gl/gl_unix.go @@ -102,9 +102,6 @@ static void gio_glEndQuery(GLenum target) { } static const GLubyte* gio_glGetStringi(GLenum name, GLuint index) { - if (_glGetStringi == NULL) { - return NULL; - } return _glGetStringi(name, index); } @@ -484,7 +481,7 @@ func (f *Functions) GetShaderInfoLog(s Shader) string { return string(buf) } -func (f *Functions) GetStringi(pname Enum, index int) string { +func (f *Functions) getStringi(pname Enum, index int) string { str := C.gio_glGetStringi(C.GLenum(pname), C.GLuint(index)) if str == nil { return "" @@ -500,7 +497,7 @@ func (f *Functions) GetString(pname Enum) string { var exts []string nexts := f.GetInteger(NUM_EXTENSIONS) for i := 0; i < nexts; i++ { - ext := f.GetStringi(EXTENSIONS, i) + ext := f.getStringi(EXTENSIONS, i) exts = append(exts, ext) } return strings.Join(exts, " ")