diff --git a/internal/graphicsdriver/opengl/context_desktop.go b/internal/graphicsdriver/opengl/context_desktop.go index eaf4bec3e..b412eb39c 100644 --- a/internal/graphicsdriver/opengl/context_desktop.go +++ b/internal/graphicsdriver/opengl/context_desktop.go @@ -449,7 +449,7 @@ func (c *context) needsRestoring() bool { } func (c *context) canUsePBO() bool { - return isPBOAvailable() + return false } func (c *context) texSubImage2D(t textureNative, args []*driver.ReplacePixelsArgs) { diff --git a/internal/graphicsdriver/opengl/context_js.go b/internal/graphicsdriver/opengl/context_js.go index 33bf47c6a..cf863bc31 100644 --- a/internal/graphicsdriver/opengl/context_js.go +++ b/internal/graphicsdriver/opengl/context_js.go @@ -530,7 +530,7 @@ func (c *context) needsRestoring() bool { } func (c *context) canUsePBO() bool { - return isWebGL2Available + return false } func (c *context) texSubImage2D(t textureNative, args []*driver.ReplacePixelsArgs) { diff --git a/internal/graphicsdriver/opengl/image.go b/internal/graphicsdriver/opengl/image.go index 48f151539..3a9a6295c 100644 --- a/internal/graphicsdriver/opengl/image.go +++ b/internal/graphicsdriver/opengl/image.go @@ -120,6 +120,7 @@ func (i *Image) ReplacePixels(args []*driver.ReplacePixelsArgs) { } i.graphics.drawCalled = false + // TODO: Now canUsePBO always returns false (#1678). Remove the code for PBO. if !i.graphics.context.canUsePBO() { i.graphics.context.texSubImage2D(i.textureNative, args) return