internal/graphicsdriver/opengl/gl: remove an unused function GetBufferSubData

This is basically a revert of 86a0c7aa82
This commit is contained in:
Hajime Hoshi 2022-05-24 20:45:43 +09:00
parent a1370a4791
commit 3745c0a2e0
2 changed files with 0 additions and 22 deletions

View File

@ -130,7 +130,6 @@ package gl
// typedef void (APIENTRYP GPGENFRAMEBUFFERSEXT)(GLsizei n, GLuint * framebuffers); // typedef void (APIENTRYP GPGENFRAMEBUFFERSEXT)(GLsizei n, GLuint * framebuffers);
// typedef void (APIENTRYP GPGENRENDERBUFFERSEXT)(GLsizei n, GLuint * renderbuffers); // typedef void (APIENTRYP GPGENRENDERBUFFERSEXT)(GLsizei n, GLuint * renderbuffers);
// typedef void (APIENTRYP GPGENTEXTURES)(GLsizei n, GLuint * textures); // typedef void (APIENTRYP GPGENTEXTURES)(GLsizei n, GLuint * textures);
// typedef void (APIENTRYP GPGETBUFFERSUBDATA)(GLenum target, GLintptr offset, GLsizeiptr size, void * data);
// typedef void (APIENTRYP GPGETDOUBLEI_V)(GLenum target, GLuint index, GLdouble * data); // typedef void (APIENTRYP GPGETDOUBLEI_V)(GLenum target, GLuint index, GLdouble * data);
// typedef void (APIENTRYP GPGETDOUBLEI_VEXT)(GLenum pname, GLuint index, GLdouble * params); // typedef void (APIENTRYP GPGETDOUBLEI_VEXT)(GLenum pname, GLuint index, GLdouble * params);
// typedef GLenum (APIENTRYP GPGETERROR)(); // typedef GLenum (APIENTRYP GPGETERROR)();
@ -280,9 +279,6 @@ package gl
// static void glowGenTextures(GPGENTEXTURES fnptr, GLsizei n, GLuint * textures) { // static void glowGenTextures(GPGENTEXTURES fnptr, GLsizei n, GLuint * textures) {
// (*fnptr)(n, textures); // (*fnptr)(n, textures);
// } // }
// static void glowGetBufferSubData(GPGETBUFFERSUBDATA fnptr, GLenum target, GLintptr offset, GLsizeiptr size, void * data) {
// (*fnptr)(target, offset, size, data);
// }
// static void glowGetDoublei_v(GPGETDOUBLEI_V fnptr, GLenum target, GLuint index, GLdouble * data) { // static void glowGetDoublei_v(GPGETDOUBLEI_V fnptr, GLenum target, GLuint index, GLdouble * data) {
// (*fnptr)(target, index, data); // (*fnptr)(target, index, data);
// } // }
@ -463,7 +459,6 @@ var (
gpGenFramebuffersEXT C.GPGENFRAMEBUFFERSEXT gpGenFramebuffersEXT C.GPGENFRAMEBUFFERSEXT
gpGenRenderbuffersEXT C.GPGENRENDERBUFFERSEXT gpGenRenderbuffersEXT C.GPGENRENDERBUFFERSEXT
gpGenTextures C.GPGENTEXTURES gpGenTextures C.GPGENTEXTURES
gpGetBufferSubData C.GPGETBUFFERSUBDATA
gpGetDoublei_v C.GPGETDOUBLEI_V gpGetDoublei_v C.GPGETDOUBLEI_V
gpGetDoublei_vEXT C.GPGETDOUBLEI_VEXT gpGetDoublei_vEXT C.GPGETDOUBLEI_VEXT
gpGetError C.GPGETERROR gpGetError C.GPGETERROR
@ -658,10 +653,6 @@ func GenTextures(n int32, textures *uint32) {
C.glowGenTextures(gpGenTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures))) C.glowGenTextures(gpGenTextures, (C.GLsizei)(n), (*C.GLuint)(unsafe.Pointer(textures)))
} }
func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {
C.glowGetBufferSubData(gpGetBufferSubData, (C.GLenum)(target), (C.GLintptr)(offset), (C.GLsizeiptr)(size), data)
}
func GetDoublei_v(target uint32, index uint32, data *float64) { func GetDoublei_v(target uint32, index uint32, data *float64) {
C.glowGetDoublei_v(gpGetDoublei_v, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(data))) C.glowGetDoublei_v(gpGetDoublei_v, (C.GLenum)(target), (C.GLuint)(index), (*C.GLdouble)(unsafe.Pointer(data)))
} }
@ -958,10 +949,6 @@ func InitWithProcAddrFunc(getProcAddr func(name string) unsafe.Pointer) error {
if gpGenTextures == nil { if gpGenTextures == nil {
return errors.New("glGenTextures") return errors.New("glGenTextures")
} }
gpGetBufferSubData = (C.GPGETBUFFERSUBDATA)(getProcAddr("glGetBufferSubData"))
if gpGetBufferSubData == nil {
return errors.New("glGetBufferSubData")
}
gpGetDoublei_v = (C.GPGETDOUBLEI_V)(getProcAddr("glGetDoublei_v")) gpGetDoublei_v = (C.GPGETDOUBLEI_V)(getProcAddr("glGetDoublei_v"))
gpGetDoublei_vEXT = (C.GPGETDOUBLEI_VEXT)(getProcAddr("glGetDoublei_vEXT")) gpGetDoublei_vEXT = (C.GPGETDOUBLEI_VEXT)(getProcAddr("glGetDoublei_vEXT"))
gpGetError = (C.GPGETERROR)(getProcAddr("glGetError")) gpGetError = (C.GPGETERROR)(getProcAddr("glGetError"))

View File

@ -44,7 +44,6 @@ var (
gpGenFramebuffersEXT uintptr gpGenFramebuffersEXT uintptr
gpGenRenderbuffersEXT uintptr gpGenRenderbuffersEXT uintptr
gpGenTextures uintptr gpGenTextures uintptr
gpGetBufferSubData uintptr
gpGetDoublei_v uintptr gpGetDoublei_v uintptr
gpGetDoublei_vEXT uintptr gpGetDoublei_vEXT uintptr
gpGetError uintptr gpGetError uintptr
@ -239,10 +238,6 @@ func GenTextures(n int32, textures *uint32) {
syscall.Syscall(gpGenTextures, 2, uintptr(n), uintptr(unsafe.Pointer(textures)), 0) syscall.Syscall(gpGenTextures, 2, uintptr(n), uintptr(unsafe.Pointer(textures)), 0)
} }
func GetBufferSubData(target uint32, offset int, size int, data unsafe.Pointer) {
syscall.Syscall6(gpGetBufferSubData, 4, uintptr(target), uintptr(offset), uintptr(size), uintptr(data), 0, 0)
}
func GetDoublei_v(target uint32, index uint32, data *float64) { func GetDoublei_v(target uint32, index uint32, data *float64) {
syscall.Syscall(gpGetDoublei_v, 3, uintptr(target), uintptr(index), uintptr(unsafe.Pointer(data))) syscall.Syscall(gpGetDoublei_v, 3, uintptr(target), uintptr(index), uintptr(unsafe.Pointer(data)))
} }
@ -539,10 +534,6 @@ func InitWithProcAddrFunc(getProcAddr func(name string) uintptr) error {
if gpGenTextures == 0 { if gpGenTextures == 0 {
return errors.New("glGenTextures") return errors.New("glGenTextures")
} }
gpGetBufferSubData = getProcAddr("glGetBufferSubData")
if gpGetBufferSubData == 0 {
return errors.New("glGetBufferSubData")
}
gpGetDoublei_v = getProcAddr("glGetDoublei_v") gpGetDoublei_v = getProcAddr("glGetDoublei_v")
gpGetDoublei_vEXT = getProcAddr("glGetDoublei_vEXT") gpGetDoublei_vEXT = getProcAddr("glGetDoublei_vEXT")
gpGetError = getProcAddr("glGetError") gpGetError = getProcAddr("glGetError")