graphics: Bug fix: Don't delete the screen framebuffer (iOS)

This commit is contained in:
Hajime Hoshi 2017-12-31 20:55:04 +09:00
parent 473aeaa8b1
commit 5d4c4f1283

View File

@ -333,7 +333,8 @@ type disposeCommand struct {
// Exec executes the disposeCommand.
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)
}
if c.target.texture != nil {