mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-11 19:48:54 +01:00
internal/ui: bug fix: wrong condition
This commit is contained in:
parent
bbc82ef2db
commit
e4b15faefe
@ -200,7 +200,7 @@ func (c *context) drawGame(graphicsDriver graphicsdriver.Graphics, forceDraw boo
|
|||||||
|
|
||||||
// TODO: Metal (and maybe DirectX) cannot vsync without swapping the buffer by rendering the screen framebuffer (#2520).
|
// TODO: Metal (and maybe DirectX) cannot vsync without swapping the buffer by rendering the screen framebuffer (#2520).
|
||||||
// Implement this skipping appropriately for Metal and DirectX.
|
// Implement this skipping appropriately for Metal and DirectX.
|
||||||
if c.skipCount < maxSkipCount && graphicsDriver.IsGL() {
|
if c.skipCount < maxSkipCount || !graphicsDriver.IsGL() {
|
||||||
if graphicsDriver.NeedsClearingScreen() {
|
if graphicsDriver.NeedsClearingScreen() {
|
||||||
// This clear is needed for fullscreen mode or some mobile platforms (#622).
|
// This clear is needed for fullscreen mode or some mobile platforms (#622).
|
||||||
c.screen.clear()
|
c.screen.clear()
|
||||||
|
Loading…
Reference in New Issue
Block a user