-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Fixes OpenGL #2023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes OpenGL #2023
Conversation
The editor and a project also built with OpenGLES, but the game didn't launch. It is likely Stride is generally not setup to work with OpenGLES on Windows/Desktop, or my graphics driver doesn't support OpenGLES. |
I believe there's still work to be done (some visible differences in the rendering between D3D11 and OpenGL), but I haven't checked if that's been introduced from the Silk upgrade, or was always like that. There's also quite a lot of Deprecated things, that while still continue to function, ideally should be updated at some point. |
Results from testing against 83fdc04 (last working version of OpenGL on Windows):
Conclusions:
|
@@ -12,22 +12,22 @@ namespace Silk.NET.OpenGL | |||
internal class GLCoreLibraryNameContainer : SearchPathContainer | |||
{ | |||
/// <inheritdoc /> | |||
public override string Linux => "libGL.so.1"; | |||
public override string[] Linux => new[] { "libGL.so.1" }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you make those properties { get; } =
instead of =>
to avoid per call allocations of the array?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll look into this as soon as I can.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I modeled how I did it based on how Silk.NET internally does the same thing (should we do a pull to Silk to change this?): e.g. https://github.com/dotnet/Silk.NET/blob/da7cae57614f91d0387fa51af8a52c99b7c43d98/src/Windowing/Silk.NET.SDL/SDLLibraryNameContainer.cs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In fact, does it even make sense in the first place to have this file here, instead of just the one already in Silk.NET? See: https://github.com/dotnet/Silk.NET/blob/da7cae57614f91d0387fa51af8a52c99b7c43d98/src/OpenGL/Silk.NET.OpenGL/GLCoreLibraryNameContainer.cs
After I do an Android (OpenGLES) build test, it should be ready to merge. |
I have been modifying both. |
Great, thanks a lot! |
PR Details
Updates Stride.Graphics' OpenGL to match the new version of the API that's used in Silk.NET-2.17.1
Description
Related Issue
#1911
Motivation and Context
When updating OpenXR to the latest version, Silk's OpenGL bindings also got updated, which updated the version of OpenGL, which had breaking changes.
Types of changes
Checklist