mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
internal/graphicsdriver/playstation5: bug fix: call C Begin/End functions
This commit is contained in:
parent
4d3f357f81
commit
043164e17c
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user