mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
opengl: Unexport (*Context).Reset()
This commit is contained in:
parent
ac7bf354a9
commit
bb0b8ca83b
@ -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
|
||||||
|
@ -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())
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user