graphicsdriver/opengl: Experimental PBO implementation

This change is an experimental implementation to use Pixel Buffer
Objects. This reduces calls of glTexSubImage2D.

This works only on desktops. Unfortunately WebGL does not have
this features. Mobiles can have PBO as of OpenGL ES 3.

Updates #976
This commit is contained in:
Hajime Hoshi
2019-11-17 02:10:10 +09:00
parent 16b3a5c296
commit acc933b7c3
9 changed files with 232 additions and 1 deletions

View File

@@ -470,3 +470,7 @@ func (c *context) flush() {
func (c *context) needsRestoring() bool {
return !web.IsMobileBrowser()
}
func (c *context) canUsePBO() bool {
return false
}