internal/graphicsdriver/playstation5: bug fix: call C Begin/End functions

This commit is contained in:
Hajime Hoshi 2024-09-23 17:59:28 +09:00
parent 4d3f357f81
commit 043164e17c

View File

@ -61,10 +61,16 @@ func (g *Graphics) Initialize() error {
}
func (g *Graphics) Begin() error {
C.ebitengine_Begin()
return nil
}
func (g *Graphics) End(present bool) error {
var cPresent C.int
if present {
cPresent = 1
}
C.ebitengine_End(cPresent)
return nil
}