mobile/gl
Hajime Hoshi 0c13fd3166 gl: enable use of buffer objects for TexSubImage2D by nil
This CL enables use of a bound buffer at TexSubImage2D by allowing
nil (0) data, which indicates the head of the bound buffer.

In the long run, we need to be able to pass non-0 integer to not
only TexSubImage2D but also other functions like TexImage2D. As we
might change the API, let's revisit this issue later.

Fixes golang/go#36355

Change-Id: I66f6650b10fca9a346cfa6eba246ea9286ed3a85
Reviewed-on: https://go-review.googlesource.com/c/mobile/+/213077
Run-TryBot: Hajime Hoshi <hajimehoshi@gmail.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
2020-01-19 07:00:23 +00:00
..
consts.go gl: ES 3.0 constants 2016-06-15 15:09:55 +00:00
dll_windows.go x/mobile/gl: fix windows context3 and dlls 2016-10-13 20:58:55 +00:00
doc.go gl: support for GL ES 3.0 2016-06-09 14:35:26 +00:00
fn.go gl: support (Create|Bind|Delete)VertexArray for GL ES 3 2017-09-10 23:20:06 +00:00
gendebug.go gl: provide dummy impl when cgo is disabled 2019-07-19 00:42:57 +00:00
gl.go gl: enable use of buffer objects for TexSubImage2D by nil 2020-01-19 07:00:23 +00:00
gldebug.go gl: provide dummy impl when cgo is disabled 2019-07-19 00:42:57 +00:00
interface.go gl: add internalFormat to TexImage2D 2018-09-07 22:41:11 +00:00
types_debug.go gl: provide dummy impl when cgo is disabled 2019-07-19 00:42:57 +00:00
types_prod.go gl: provide dummy impl when cgo is disabled 2019-07-19 00:42:57 +00:00
work.c gl: add OpenBSD support 2017-11-26 19:47:19 +00:00
work.go app,exp,gl: fix build 2019-03-06 14:40:52 +00:00
work.h gl: add OpenBSD support 2017-11-26 19:47:19 +00:00
work_other.go gl: provide dummy impl when cgo is disabled 2019-07-19 00:42:57 +00:00
work_windows.go gl: fix typos in multiple places 2018-01-17 09:46:58 +00:00
work_windows_386.s x/mobile/gl: fix building on windows/386 2016-10-26 17:46:18 +00:00
work_windows_amd64.s x/mobile/gl: include textflag.h in work_windows_amd64.s 2015-12-17 17:59:11 +00:00