mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphicsdriver/opengl/gl: Bug fix: compile error on non-Windows
This commit is contained in:
parent
0ef8009c11
commit
ac6a3f0900
@ -305,8 +305,8 @@ package gl
|
||||
// static void glowLinkProgram(GPLINKPROGRAM fnptr, GLuint program) {
|
||||
// (*fnptr)(program);
|
||||
// }
|
||||
// static void * glowMapBuffer(GPMAPBUFFER fnptr, GLenum target, GLenum access) {
|
||||
// return (*fnptr)(target, access);
|
||||
// static uintptr_t glowMapBuffer(GPMAPBUFFER fnptr, GLenum target, GLenum access) {
|
||||
// return (uintptr_t)(*fnptr)(target, access);
|
||||
// }
|
||||
// static void glowPixelStorei(GPPIXELSTOREI fnptr, GLenum pname, GLint param) {
|
||||
// (*fnptr)(pname, param);
|
||||
@ -628,7 +628,7 @@ func LinkProgram(program uint32) {
|
||||
|
||||
func MapBuffer(target uint32, access uint32) uintptr {
|
||||
ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))
|
||||
return ret
|
||||
return uintptr(ret)
|
||||
}
|
||||
|
||||
func PixelStorei(pname uint32, param int32) {
|
||||
|
Loading…
Reference in New Issue
Block a user