mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 12:32:05 +01:00
parent
2f84e77e74
commit
b43312fe80
@ -33,6 +33,8 @@ import (
|
|||||||
|
|
||||||
const frameCount = 2
|
const frameCount = 2
|
||||||
|
|
||||||
|
// NewGraphics creates an implementation of graphicsdriver.Graphcis for DirectX.
|
||||||
|
// The returned graphics value is nil iff the error is not nil.
|
||||||
func NewGraphics() (graphicsdriver.Graphics, error) {
|
func NewGraphics() (graphicsdriver.Graphics, error) {
|
||||||
const is64bit = uint64(^uintptr(0)) == ^uint64(0)
|
const is64bit = uint64(^uintptr(0)) == ^uint64(0)
|
||||||
|
|
||||||
@ -160,6 +162,9 @@ func (g *Graphics) initialize() (ferr error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Initialize not only a device but also other members like fences.
|
||||||
|
// Even if initializing a device succeeds, initializing a fence might fail (#2142).
|
||||||
|
|
||||||
if microsoftgdk.IsXbox() {
|
if microsoftgdk.IsXbox() {
|
||||||
if err := g.initializeXbox(useWARP, useDebugLayer); err != nil {
|
if err := g.initializeXbox(useWARP, useDebugLayer); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user