Skip to content

Commit fac347c

Browse files
committed
Revert incorrect OpenGL capitalization changes in SdlSurfaceComponents.OpenGL.cs
1 parent 5cd9029 commit fac347c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sources/Windowing/Windowing/Implementations/SDL3/SdlSurfaceComponents.OpenGL.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ private void ThrowGlPrematureAccessException()
4747
if (IsSurfaceInitialized)
4848
{
4949
throw new InvalidOperationException(
50-
"The OpenGl context cannot be accessed as it was not enabled during "
50+
"The OpenGL context cannot be accessed as it was not enabled during "
5151
+ "ISurfaceApplication.Initialize<TSurface>(TSurface)."
5252
);
5353
}
5454
throw new InvalidOperationException(
55-
"The OpenGl context cannot be accessed until ISurfaceApplication.Initialize<TSurface>(TSurface) "
55+
"The OpenGL context cannot be accessed until ISurfaceApplication.Initialize<TSurface>(TSurface) "
5656
+ "has finished executing, consider using the Surface.Created callback instead."
5757
);
5858
}
@@ -217,7 +217,7 @@ private bool TryCreateContext(bool isInitializing)
217217
if (Handle == nullptr && isInitializing)
218218
{
219219
throw new InvalidOperationException(
220-
"Attempted to initialize OpenGl context before window initialization - this should not be possible "
220+
"Attempted to initialize OpenGL context before window initialization - this should not be possible "
221221
+ "with normal usage. Please report this at https://github.com/dotnet/Silk.NET"
222222
);
223223
}
@@ -229,7 +229,7 @@ private bool TryCreateContext(bool isInitializing)
229229
&& GetDummyWindow(Sdl.WindowOpengl, nFlags: Sdl.WindowVulkan) == nullptr
230230
)
231231
{
232-
// Guess OpenGl isn't supported after all...
232+
// Guess OpenGL isn't supported after all...
233233
ClearErrorIf(!isInitializing);
234234
return false;
235235
}
@@ -251,7 +251,7 @@ private bool TryCreateContext(bool isInitializing)
251251
if (isInitializing)
252252
{
253253
throw new NotSupportedException(
254-
"On this platform, SharedContext must be either a Silk.NET.SDL.SdlContext an OpenGl component "
254+
"On this platform, SharedContext must be either a Silk.NET.SDL.SdlContext an OpenGL component "
255255
+ "retrieved from a surface created using ISurfaceApplication.Run<T>() or "
256256
+ "IDetachedSurfaceLifecycle.TryCreate<T>(out IDetachedSurfaceLifecycle?)."
257257
);

0 commit comments

Comments
 (0)