mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-10-09 09:50:09 +08:00
@@ -45,7 +45,7 @@ func newScreenFramebuffer(context *context, width, height int) *framebuffer {
|
||||
}
|
||||
|
||||
func (f *framebuffer) delete(context *context) {
|
||||
if f.native != context.getScreenFramebuffer() {
|
||||
if !f.native.equal(context.getScreenFramebuffer()) {
|
||||
context.deleteFramebuffer(f.native)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user