mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
internal/graphicsdriver/directx: refactoring
This commit is contained in:
parent
c394bdcf7c
commit
d6525a2782
@ -328,7 +328,7 @@ func (g *Graphics) initializeXbox(useWARP bool, useDebugLayer bool) (ferr error)
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := g.registerFrameEventForXbox(); err != nil {
|
if err := g.graphics12.registerFrameEventForXbox(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -351,7 +351,7 @@ func (g *Graphics) initializeXbox(useWARP bool, useDebugLayer bool) (ferr error)
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *Graphics) registerFrameEventForXbox() error {
|
func (g *graphics12) registerFrameEventForXbox() error {
|
||||||
d, err := g.device.QueryInterface(&_IID_IDXGIDevice)
|
d, err := g.device.QueryInterface(&_IID_IDXGIDevice)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user