opengl: Unexport (*Context).Reset()

This commit is contained in:
Hajime Hoshi 2018-10-30 02:18:10 +09:00
parent ac7bf354a9
commit bb0b8ca83b
4 changed files with 4 additions and 4 deletions

View File

@ -90,7 +90,7 @@ func (c *Context) runOnContextThread(f func() error) error {
return c.runOnMainThread(f) return c.runOnMainThread(f)
} }
func (c *Context) Reset() error { func (c *Context) reset() error {
if err := c.runOnContextThread(func() error { if err := c.runOnContextThread(func() error {
if c.init { if c.init {
return nil return nil

View File

@ -147,7 +147,7 @@ func Init() error {
return nil return nil
} }
func (c *Context) Reset() error { func (c *Context) reset() error {
c.locationCache = newLocationCache() c.locationCache = newLocationCache()
c.lastTexture = Texture(js.Null()) c.lastTexture = Texture(js.Null())
c.lastFramebuffer = Framebuffer(js.Null()) c.lastFramebuffer = Framebuffer(js.Null())

View File

@ -109,7 +109,7 @@ loop:
return nil return nil
} }
func (c *Context) Reset() error { func (c *Context) reset() error {
c.locationCache = newLocationCache() c.locationCache = newLocationCache()
c.lastTexture = invalidTexture c.lastTexture = invalidTexture
c.lastFramebuffer = invalidFramebuffer c.lastFramebuffer = invalidFramebuffer

View File

@ -154,7 +154,7 @@ func ResetGLState() error {
// reset resets or initializes the OpenGL state. // reset resets or initializes the OpenGL state.
func (s *openGLState) reset() error { func (s *openGLState) reset() error {
if err := GetContext().Reset(); err != nil { if err := GetContext().reset(); err != nil {
return err return err
} }