mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 03:38: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)
|
||||
}
|
||||
|
||||
func (c *Context) Reset() error {
|
||||
func (c *Context) reset() error {
|
||||
if err := c.runOnContextThread(func() error {
|
||||
if c.init {
|
||||
return nil
|
||||
|
@ -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())
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user