mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
graphics: Bug fix: Don't delete the screen framebuffer (iOS)
This commit is contained in:
parent
473aeaa8b1
commit
5d4c4f1283
@ -333,7 +333,8 @@ type disposeCommand struct {
|
|||||||
|
|
||||||
// Exec executes the disposeCommand.
|
// Exec executes the disposeCommand.
|
||||||
func (c *disposeCommand) Exec(indexOffsetInBytes int) error {
|
func (c *disposeCommand) Exec(indexOffsetInBytes int) error {
|
||||||
if c.target.framebuffer != nil {
|
if c.target.framebuffer != nil &&
|
||||||
|
c.target.framebuffer.native != opengl.GetContext().ScreenFramebuffer() {
|
||||||
opengl.GetContext().DeleteFramebuffer(c.target.framebuffer.native)
|
opengl.GetContext().DeleteFramebuffer(c.target.framebuffer.native)
|
||||||
}
|
}
|
||||||
if c.target.texture != nil {
|
if c.target.texture != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user