From bb0b8ca83bb193871fd443533e30b6d84ecdf68d Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 30 Oct 2018 02:18:10 +0900 Subject: [PATCH] opengl: Unexport (*Context).Reset() --- internal/opengl/context_desktop.go | 2 +- internal/opengl/context_js.go | 2 +- internal/opengl/context_mobile.go | 2 +- internal/opengl/program.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/opengl/context_desktop.go b/internal/opengl/context_desktop.go index 50650e530..2cc9a76db 100644 --- a/internal/opengl/context_desktop.go +++ b/internal/opengl/context_desktop.go @@ -90,7 +90,7 @@ func (c *Context) runOnContextThread(f func() error) error { return c.runOnMainThread(f) } -func (c *Context) Reset() error { +func (c *Context) reset() error { if err := c.runOnContextThread(func() error { if c.init { return nil diff --git a/internal/opengl/context_js.go b/internal/opengl/context_js.go index 36f4a87b8..8aed1a5bf 100644 --- a/internal/opengl/context_js.go +++ b/internal/opengl/context_js.go @@ -147,7 +147,7 @@ func Init() error { return nil } -func (c *Context) Reset() error { +func (c *Context) reset() error { c.locationCache = newLocationCache() c.lastTexture = Texture(js.Null()) c.lastFramebuffer = Framebuffer(js.Null()) diff --git a/internal/opengl/context_mobile.go b/internal/opengl/context_mobile.go index 05aa89148..850f2d1fe 100644 --- a/internal/opengl/context_mobile.go +++ b/internal/opengl/context_mobile.go @@ -109,7 +109,7 @@ loop: return nil } -func (c *Context) Reset() error { +func (c *Context) reset() error { c.locationCache = newLocationCache() c.lastTexture = invalidTexture c.lastFramebuffer = invalidFramebuffer diff --git a/internal/opengl/program.go b/internal/opengl/program.go index 9885a4b46..18fdfe08c 100644 --- a/internal/opengl/program.go +++ b/internal/opengl/program.go @@ -154,7 +154,7 @@ func ResetGLState() error { // reset resets or initializes the OpenGL state. func (s *openGLState) reset() error { - if err := GetContext().Reset(); err != nil { + if err := GetContext().reset(); err != nil { return err }