mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphicsdriver/metal: Refactoring: vsync member variable was not needed
This commit is contained in:
parent
105909ab6c
commit
86bda42417
@ -234,7 +234,6 @@ type Driver struct {
|
||||
dst *Image
|
||||
|
||||
maxImageSize int
|
||||
vsync bool
|
||||
}
|
||||
|
||||
var theDriver Driver
|
||||
@ -396,7 +395,6 @@ func (d *Driver) Reset() error {
|
||||
// MTLPixelFormatBGRA10_XR_sRGB.
|
||||
d.ml.SetPixelFormat(mtl.PixelFormatBGRA8UNorm)
|
||||
d.ml.SetMaximumDrawableCount(3)
|
||||
d.ml.SetDisplaySyncEnabled(d.vsync)
|
||||
|
||||
replaces := map[string]string{
|
||||
"{{.FilterNearest}}": fmt.Sprintf("%d", graphics.FilterNearest),
|
||||
@ -575,7 +573,6 @@ func (d *Driver) SetVsyncEnabled(enabled bool) {
|
||||
// recursive function call via Run is forbidden.
|
||||
// Fix this to use mainthread.Run to avoid confusion.
|
||||
d.ml.SetDisplaySyncEnabled(enabled)
|
||||
d.vsync = enabled
|
||||
}
|
||||
|
||||
func (d *Driver) VDirection() graphicsdriver.VDirection {
|
||||
|
Loading…
Reference in New Issue
Block a user