mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +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 {
|
func (g *Graphics) Begin() error {
|
||||||
|
C.ebitengine_Begin()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *Graphics) End(present bool) error {
|
func (g *Graphics) End(present bool) error {
|
||||||
|
var cPresent C.int
|
||||||
|
if present {
|
||||||
|
cPresent = 1
|
||||||
|
}
|
||||||
|
C.ebitengine_End(cPresent)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user