Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/mobile/gl: BufferInit doesn't work #14403

Closed
hajimehoshi opened this issue Feb 19, 2016 · 2 comments
Closed

x/mobile/gl: BufferInit doesn't work #14403

hajimehoshi opened this issue Feb 19, 2016 · 2 comments

Comments

@hajimehoshi
Copy link
Member

BufferInit always causes INVALID_ENUM error because this calls glBufferData without any pointer value.

https://github.com/golang/mobile/blob/master/gl/gl.go#L163

IIUC, instead of 0 value of a2, an null pointer pargs should be used.

@gopherbot
Copy link

CL https://golang.org/cl/19702 mentions this issue.

@gopherbot
Copy link

CL https://golang.org/cl/19703 mentions this issue.

@golang golang locked and limited conversation to collaborators Feb 28, 2017
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 10, 2021
Before this CL, BufferInit always causes INVALID_ENUM error because
0 (a2) is always passed to 'usage' argument of glBufferData.

This CL fixes removes a2, shifts a3 to a2, and adds parg as null
pointer explicitly.

Fixes golang/go#14403

Change-Id: I11109c983316f5975a79f42dc51d7a180e222b91
Reviewed-on: https://go-review.googlesource.com/19703
Reviewed-by: David Crawshaw <crawshaw@golang.org>
imWildCat pushed a commit to imWildCat/go-mobile that referenced this issue Apr 11, 2021
Before this CL, BufferInit always causes INVALID_ENUM error because
0 (a2) is always passed to 'usage' argument of glBufferData.

This CL fixes removes a2, shifts a3 to a2, and adds parg as null
pointer explicitly.

Fixes golang/go#14403

Change-Id: I11109c983316f5975a79f42dc51d7a180e222b91
Reviewed-on: https://go-review.googlesource.com/19703
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants