Skip to content

fix list of supported surfaces#7801

Merged
ThomasFOG merged 1 commit intoMonoGame:developfrom
nkast:mg_fixAndroidDeviceSupportsList
May 14, 2022
Merged

fix list of supported surfaces#7801
ThomasFOG merged 1 commit intoMonoGame:developfrom
nkast:mg_fixAndroidDeviceSupportsList

Conversation

@nkast
Copy link
Copy Markdown
Contributor

@nkast nkast commented May 14, 2022

currently I am getting the following output during startup (emulator)

Device Supports
Red:5 Green:5 Blue:5 Alpha:5 Depth:5 Stencil:5 SampleBuffers:5 Samples:5
Red:8 Green:8 Blue:8 Alpha:8 Depth:8 Stencil:8 SampleBuffers:8 Samples:8
Red:8 Green:8 Blue:8 Alpha:8 Depth:8 Stencil:8 SampleBuffers:8 Samples:8

The corrected output:

Device Supports
Red:5 Green:6 Blue:5 Alpha:0 Depth:24 Stencil:8 SampleBuffers:0 Samples:0
Red:8 Green:8 Blue:8 Alpha:0 Depth:24 Stencil:8 SampleBuffers:0 Samples:0
Red:8 Green:8 Blue:8 Alpha:8 Depth:24 Stencil:8 SampleBuffers:0 Samples:0
Red:8 Green:8 Blue:8 Alpha:8 Depth:24 Stencil:8 SampleBuffers:0 Samples:0

This output is generated here,

egl.EglGetConfigs(eglDisplay, cfgs, numConfigs[0], numConfigs);
Log.Verbose("AndroidGameView", "Device Supports");
foreach (var c in cfgs) {
Log.Verbose("AndroidGameView", string.Format(" {0}", SurfaceConfig.FromEGLConfig(c, egl, eglDisplay)));
}

currently I am getting the following output during startup (emulator)
```
Device Supports
Red:5 Green:5 Blue:5 Alpha:5 Depth:5 Stencil:5 SampleBuffers:5 Samples:5
Red:8 Green:8 Blue:8 Alpha:8 Depth:8 Stencil:8 SampleBuffers:8 Samples:8
Red:8 Green:8 Blue:8 Alpha:8 Depth:8 Stencil:8 SampleBuffers:8 Samples:8
```

The corrected output:
```

Device Supports
Red:5 Green:6 Blue:5 Alpha:0 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:0 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:8 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:8 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
```
@ThomasFOG ThomasFOG merged commit 56667fb into MonoGame:develop May 14, 2022
@nkast nkast deleted the mg_fixAndroidDeviceSupportsList branch May 14, 2022 15:35
viniciusjarina pushed a commit to codefoco/MonoGame that referenced this pull request Jul 4, 2022
currently I am getting the following output during startup (emulator)
```
Device Supports
Red:5 Green:5 Blue:5 Alpha:5 Depth:5 Stencil:5 SampleBuffers:5 Samples:5
Red:8 Green:8 Blue:8 Alpha:8 Depth:8 Stencil:8 SampleBuffers:8 Samples:8
Red:8 Green:8 Blue:8 Alpha:8 Depth:8 Stencil:8 SampleBuffers:8 Samples:8
```

The corrected output:
```

Device Supports
Red:5 Green:6 Blue:5 Alpha:0 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:0 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:8 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:8 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
```
bytinggames pushed a commit to bytinggames/MonoGame that referenced this pull request Oct 9, 2022
currently I am getting the following output during startup (emulator)
```
Device Supports
Red:5 Green:5 Blue:5 Alpha:5 Depth:5 Stencil:5 SampleBuffers:5 Samples:5
Red:8 Green:8 Blue:8 Alpha:8 Depth:8 Stencil:8 SampleBuffers:8 Samples:8
Red:8 Green:8 Blue:8 Alpha:8 Depth:8 Stencil:8 SampleBuffers:8 Samples:8
```

The corrected output:
```

Device Supports
Red:5 Green:6 Blue:5 Alpha:0 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:0 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:8 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
Red:8 Green:8 Blue:8 Alpha:8 Depth:24 Stencil:8 SampleBuffers:0
Samples:0
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants