mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 09:55:40 +00:00
internal/gl: unexport GetStringi
It's only used for the backwards incompatible macOS GL core profile. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -102,9 +102,6 @@ static void gio_glEndQuery(GLenum target) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static const GLubyte* gio_glGetStringi(GLenum name, GLuint index) {
|
static const GLubyte* gio_glGetStringi(GLenum name, GLuint index) {
|
||||||
if (_glGetStringi == NULL) {
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
return _glGetStringi(name, index);
|
return _glGetStringi(name, index);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -484,7 +481,7 @@ func (f *Functions) GetShaderInfoLog(s Shader) string {
|
|||||||
return string(buf)
|
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))
|
str := C.gio_glGetStringi(C.GLenum(pname), C.GLuint(index))
|
||||||
if str == nil {
|
if str == nil {
|
||||||
return ""
|
return ""
|
||||||
@@ -500,7 +497,7 @@ func (f *Functions) GetString(pname Enum) string {
|
|||||||
var exts []string
|
var exts []string
|
||||||
nexts := f.GetInteger(NUM_EXTENSIONS)
|
nexts := f.GetInteger(NUM_EXTENSIONS)
|
||||||
for i := 0; i < nexts; i++ {
|
for i := 0; i < nexts; i++ {
|
||||||
ext := f.GetStringi(EXTENSIONS, i)
|
ext := f.getStringi(EXTENSIONS, i)
|
||||||
exts = append(exts, ext)
|
exts = append(exts, ext)
|
||||||
}
|
}
|
||||||
return strings.Join(exts, " ")
|
return strings.Join(exts, " ")
|
||||||
|
|||||||
Reference in New Issue
Block a user