From 879cf50aafc922eaec5d6b7c3c6e1138ae99bb13 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 13 Nov 2022 02:54:34 +0900 Subject: [PATCH] internal/graphicsdriver/opengl: remove unused functions --- internal/graphicsdriver/opengl/context_gles.go | 6 ------ internal/graphicsdriver/opengl/context_js.go | 4 ---- 2 files changed, 10 deletions(-) diff --git a/internal/graphicsdriver/opengl/context_gles.go b/internal/graphicsdriver/opengl/context_gles.go index 224168721..9676c407c 100644 --- a/internal/graphicsdriver/opengl/context_gles.go +++ b/internal/graphicsdriver/opengl/context_gles.go @@ -444,12 +444,6 @@ func (c *context) needsRestoring() bool { return true } -func (c *context) canUsePBO() bool { - // On Android, using PBO might slow the applications, especially when coming back from the context lost. - // Let's not use PBO until we find a good solution. - return false -} - func (c *context) texSubImage2D(t textureNative, args []*graphicsdriver.WritePixelsArgs) { c.bindTexture(t) for _, a := range args { diff --git a/internal/graphicsdriver/opengl/context_js.go b/internal/graphicsdriver/opengl/context_js.go index 5d82ee0e0..7bc2d7952 100644 --- a/internal/graphicsdriver/opengl/context_js.go +++ b/internal/graphicsdriver/opengl/context_js.go @@ -615,10 +615,6 @@ func (c *context) needsRestoring() bool { return false } -func (c *context) canUsePBO() bool { - return false -} - func (c *context) texSubImage2D(t textureNative, args []*graphicsdriver.WritePixelsArgs) { c.bindTexture(t) gl := c.gl