From 77d21ddf386c0ae55d40028d33afdf38c242ad63 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Sun, 1 Dec 2019 19:15:03 +0000 Subject: [PATCH] app/internal/gl: fix ReadPixels on Windows Signed-off-by: Elias Naur --- app/internal/gl/gl_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/internal/gl/gl_windows.go b/app/internal/gl/gl_windows.go index d1690c35..35ab2d47 100644 --- a/app/internal/gl/gl_windows.go +++ b/app/internal/gl/gl_windows.go @@ -313,7 +313,7 @@ func (c *Functions) PixelStorei(pname Enum, param int32) { } func (f *Functions) ReadPixels(x, y, width, height int, format, ty Enum, data []byte) { d0 := &data[0] - syscall.Syscall6(_glReadPixels.Addr(), uintptr(x), uintptr(y), uintptr(width), uintptr(height), uintptr(format), uintptr(ty), uintptr(unsafe.Pointer(d0))) + syscall.Syscall9(_glReadPixels.Addr(), 7, uintptr(x), uintptr(y), uintptr(width), uintptr(height), uintptr(format), uintptr(ty), uintptr(unsafe.Pointer(d0)), 0, 0) issue34474KeepAlive(d0) } func (c *Functions) RenderbufferStorage(target, internalformat Enum, width, height int) {