Explorar o código

On Error, switch to default framebuffer before showing bluescreen.

Bluescreens might not be shown if the error happens with a render target
different from the default framebuffer, because it gets rendered to
the attached framebuffer object. Fix that.
vrld %!s(int64=15) %!d(string=hai) anos
pai
achega
9afc5dfb08
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/scripts/boot.lua

+ 2 - 0
src/scripts/boot.lua

@@ -787,6 +787,8 @@ function love.errhand(msg)
 		return
 	end
 
+	love.graphics.setRenderTarget()
+
 	-- Load.
 	love.graphics.setScissor()
 	love.graphics.setBackgroundColor(89, 157, 220)