@@ -5089,7 +5089,7 @@ func (gl *GL) TexImage2DMultisample(target glbase.Enum, samples, internalFormat
5089
5089
5090
5090
// https://www.opengl.org/sdk/docs/man3/xhtml/glGetSynciv.xml
5091
5091
func (gl * GL ) GetSynciv (sync glbase.Sync , pname glbase.Enum , bufSize int32 , length , values []int32 ) {
5092
- C .gl3_2compat_glGetSynciv (gl .funcs , C .GLsync (sync ), C .GLenum (pname ), C .GLsizei (bufSize ), (* C .GLsizei )(unsafe .Pointer (& length [0 ])), (* C .GLint )(unsafe .Pointer (& values [0 ])))
5092
+ C .gl3_2compat_glGetSynciv (gl .funcs , C .GLsync (unsafe . Pointer ( sync ) ), C .GLenum (pname ), C .GLsizei (bufSize ), (* C .GLsizei )(unsafe .Pointer (& length [0 ])), (* C .GLint )(unsafe .Pointer (& values [0 ])))
5093
5093
}
5094
5094
5095
5095
// https://www.opengl.org/sdk/docs/man3/xhtml/glGetInteger64v.xml
@@ -5099,30 +5099,30 @@ func (gl *GL) GetInteger64v(pname glbase.Enum, params []int64) {
5099
5099
5100
5100
// https://www.opengl.org/sdk/docs/man3/xhtml/glWaitSync.xml
5101
5101
func (gl * GL ) WaitSync (sync glbase.Sync , flags glbase.Bitfield , timeout uint64 ) {
5102
- C .gl3_2compat_glWaitSync (gl .funcs , C .GLsync (sync ), C .GLbitfield (flags ), C .GLuint64 (timeout ))
5102
+ C .gl3_2compat_glWaitSync (gl .funcs , C .GLsync (unsafe . Pointer ( sync ) ), C .GLbitfield (flags ), C .GLuint64 (timeout ))
5103
5103
}
5104
5104
5105
5105
// https://www.opengl.org/sdk/docs/man3/xhtml/glClientWaitSync.xml
5106
5106
func (gl * GL ) ClientWaitSync (sync glbase.Sync , flags glbase.Bitfield , timeout uint64 ) glbase.Enum {
5107
- glresult := C .gl3_2compat_glClientWaitSync (gl .funcs , C .GLsync (sync ), C .GLbitfield (flags ), C .GLuint64 (timeout ))
5107
+ glresult := C .gl3_2compat_glClientWaitSync (gl .funcs , C .GLsync (unsafe . Pointer ( sync ) ), C .GLbitfield (flags ), C .GLuint64 (timeout ))
5108
5108
return glbase .Enum (glresult )
5109
5109
}
5110
5110
5111
5111
// https://www.opengl.org/sdk/docs/man3/xhtml/glDeleteSync.xml
5112
5112
func (gl * GL ) DeleteSync (sync glbase.Sync ) {
5113
- C .gl3_2compat_glDeleteSync (gl .funcs , C .GLsync (sync ))
5113
+ C .gl3_2compat_glDeleteSync (gl .funcs , C .GLsync (unsafe . Pointer ( sync ) ))
5114
5114
}
5115
5115
5116
5116
// https://www.opengl.org/sdk/docs/man3/xhtml/glIsSync.xml
5117
5117
func (gl * GL ) IsSync (sync glbase.Sync ) bool {
5118
- glresult := C .gl3_2compat_glIsSync (gl .funcs , C .GLsync (sync ))
5118
+ glresult := C .gl3_2compat_glIsSync (gl .funcs , C .GLsync (unsafe . Pointer ( sync ) ))
5119
5119
return * (* bool )(unsafe .Pointer (& glresult ))
5120
5120
}
5121
5121
5122
5122
// https://www.opengl.org/sdk/docs/man3/xhtml/glFenceSync.xml
5123
5123
func (gl * GL ) FenceSync (condition glbase.Enum , flags glbase.Bitfield ) glbase.Sync {
5124
5124
glresult := C .gl3_2compat_glFenceSync (gl .funcs , C .GLenum (condition ), C .GLbitfield (flags ))
5125
- return glbase .Sync (glresult )
5125
+ return glbase .Sync (unsafe . Pointer ( glresult ) )
5126
5126
}
5127
5127
5128
5128
// https://www.opengl.org/sdk/docs/man3/xhtml/glProvokingVertex.xml
0 commit comments