mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
internal/graphicsdriver/directx: use CreateEventEx to follow the official example
This commit is contained in:
parent
4c121ae5eb
commit
b27b7ec483
@ -338,7 +338,7 @@ func (g *Graphics) initializeXbox(useWARP bool, useDebugLayer bool) (ferr error)
|
|||||||
|
|
||||||
func (g *Graphics) initializeMembers() (ferr error) {
|
func (g *Graphics) initializeMembers() (ferr error) {
|
||||||
// Create an event for a fence.
|
// Create an event for a fence.
|
||||||
e, err := windows.CreateEvent(nil, 0, 0, nil)
|
e, err := windows.CreateEventEx(nil, nil, 0, windows.EVENT_MODIFY_STATE|windows.SYNCHRONIZE)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("directx: CreateEvent failed: %w", err)
|
return fmt.Errorf("directx: CreateEvent failed: %w", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user