mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-18 14:00:54 +08:00
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:
@@ -470,3 +470,7 @@ func (c *context) flush() {
|
||||
func (c *context) needsRestoring() bool {
|
||||
return !web.IsMobileBrowser()
|
||||
}
|
||||
|
||||
func (c *context) canUsePBO() bool {
|
||||
return false
|
||||
}
|
||||
|
Reference in New Issue
Block a user