mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-12 22:17:26 +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) {
|
// static void glowLinkProgram(GPLINKPROGRAM fnptr, GLuint program) {
|
||||||
// (*fnptr)(program);
|
// (*fnptr)(program);
|
||||||
// }
|
// }
|
||||||
// static void * glowMapBuffer(GPMAPBUFFER fnptr, GLenum target, GLenum access) {
|
// static uintptr_t glowMapBuffer(GPMAPBUFFER fnptr, GLenum target, GLenum access) {
|
||||||
// return (*fnptr)(target, access);
|
// return (uintptr_t)(*fnptr)(target, access);
|
||||||
// }
|
// }
|
||||||
// static void glowPixelStorei(GPPIXELSTOREI fnptr, GLenum pname, GLint param) {
|
// static void glowPixelStorei(GPPIXELSTOREI fnptr, GLenum pname, GLint param) {
|
||||||
// (*fnptr)(pname, param);
|
// (*fnptr)(pname, param);
|
||||||
@ -628,7 +628,7 @@ func LinkProgram(program uint32) {
|
|||||||
|
|
||||||
func MapBuffer(target uint32, access uint32) uintptr {
|
func MapBuffer(target uint32, access uint32) uintptr {
|
||||||
ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))
|
ret := C.glowMapBuffer(gpMapBuffer, (C.GLenum)(target), (C.GLenum)(access))
|
||||||
return ret
|
return uintptr(ret)
|
||||||
}
|
}
|
||||||
|
|
||||||
func PixelStorei(pname uint32, param int32) {
|
func PixelStorei(pname uint32, param int32) {
|
||||||
|
Loading…
Reference in New Issue
Block a user