I am making a game with LOVE2D ver. 11.5 and tried to set up push using this code:
local push = require "lib.push"
local gameWidth, gameHeight = 1280, 720 --fixed game resolution
local windowWidth, windowHeight = love.window.getDesktopDimensions()
windowWidth, windowHeight = windowWidth*.7, windowHeight*.7 --make the window a bit smaller than the screen itself
push:setupScreen(gameWidth, gameHeight, windowWidth, windowHeight, {fullscreen = false})
love.draw()
push:start()
--my drawing logic here
push:finish()
end
but when I run my game, I get an error:
"[love "callbacks.lua"]:170: present cannot be called while a Canvas is active."
I am making a game with LOVE2D ver. 11.5 and tried to set up push using this code:
local push = require "lib.push"
local gameWidth, gameHeight = 1280, 720 --fixed game resolution
local windowWidth, windowHeight = love.window.getDesktopDimensions()
windowWidth, windowHeight = windowWidth*.7, windowHeight*.7 --make the window a bit smaller than the screen itself
push:setupScreen(gameWidth, gameHeight, windowWidth, windowHeight, {fullscreen = false})
love.draw()
push:start()
--my drawing logic here
push:finish()
end
but when I run my game, I get an error:
"[love "callbacks.lua"]:170: present cannot be called while a Canvas is active."