mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicsdriver/directx: change the default feature level to 11_0
The feature level 12_0 causes some issues on some machines. As we now have EBITENGINE_DIRECTX_FEATURE_LEVEL, let's go back to the default feature level 11_0. Updates #2486
This commit is contained in:
parent
c12799dc05
commit
102a2d2138
2
doc.go
2
doc.go
@ -83,7 +83,7 @@
|
|||||||
//
|
//
|
||||||
// `EBITENGINE_DIRECTX_FEATURE_LEVEL` environment variable specifies DirectX feature level.
|
// `EBITENGINE_DIRECTX_FEATURE_LEVEL` environment variable specifies DirectX feature level.
|
||||||
// The possible values are "11_0", "11_1", "12_0", "12_1", and "12_2".
|
// The possible values are "11_0", "11_1", "12_0", "12_1", and "12_2".
|
||||||
// The default value is "12_0".
|
// The default value is "11_0".
|
||||||
//
|
//
|
||||||
// `EBITENGINE_OPENGL` environment variable specifies various parameters for OpenGL.
|
// `EBITENGINE_OPENGL` environment variable specifies various parameters for OpenGL.
|
||||||
// You can specify multiple values separated by a comma. The default value is empty (i.e. no parameters).
|
// You can specify multiple values separated by a comma. The default value is empty (i.e. no parameters).
|
||||||
|
@ -173,9 +173,9 @@ func (g *Graphics) initialize() (ferr error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ebitengine itself doesn't require the features level 12 and 11 should be enough,
|
// Specify the level 11 by default.
|
||||||
// but some old cards don't work well (#2447). Specify the level 12 by default.
|
// Some old cards don't work well with the default feature level (#2447, #2486).
|
||||||
var featureLevel _D3D_FEATURE_LEVEL = _D3D_FEATURE_LEVEL_12_0
|
var featureLevel _D3D_FEATURE_LEVEL = _D3D_FEATURE_LEVEL_11_0
|
||||||
if env := os.Getenv("EBITENGINE_DIRECTX_FEATURE_LEVEL"); env != "" {
|
if env := os.Getenv("EBITENGINE_DIRECTX_FEATURE_LEVEL"); env != "" {
|
||||||
switch env {
|
switch env {
|
||||||
case "11_0":
|
case "11_0":
|
||||||
|
Loading…
Reference in New Issue
Block a user