Skip to content

Commit 5cd9029

Browse files
committed
Revert incorrect OpenGL capitalization changes in SdlContext
1 parent 9c9fbfc commit 5cd9029

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sources/SDL/SDL/SdlContext.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
namespace Silk.NET.SDL;
55

66
/// <summary>
7-
/// Represents an OpenGl context created using SDL.
7+
/// Represents an OpenGL context created using SDL.
88
/// </summary>
99
public class SdlContext : IGlContext
1010
{
1111
/// <summary>
12-
/// Creates an OpenGl context using SDL.
12+
/// Creates an OpenGL context using SDL.
1313
/// </summary>
1414
/// <param name="window">The window to associate the context with.</param>
1515
/// <param name="attributes">The context attributes.</param>
@@ -24,7 +24,7 @@ public SdlContext(
2424
Api = sdl ?? Sdl.Instance;
2525
foreach (var (attr, value) in attributes)
2626
{
27-
Expect(Api.GlSetAttribute(attr, value), "set OpenGl context attribute");
27+
Expect(Api.GlSetAttribute(attr, value), "set OpenGL context attribute");
2828
}
2929

3030
Window = window;
@@ -36,11 +36,11 @@ public SdlContext(
3636

3737
var ctxError = (string)Api.GetError();
3838
Api.ClearError();
39-
throw new SdlException($"Failed to create OpenGl context: {ctxError}");
39+
throw new SdlException($"Failed to create OpenGL context: {ctxError}");
4040
}
4141

4242
/// <summary>
43-
/// Creates an OpenGl context using SDL.
43+
/// Creates an OpenGL context using SDL.
4444
/// </summary>
4545
/// <param name="window">The window to associate the context with.</param>
4646
/// <param name="attributes">The context attributes.</param>
@@ -50,7 +50,7 @@ public SdlContext(WindowHandle window, ISdl sdl, params KeyValuePair<GlAttr, int
5050
: this(window, attributes, sdl) { }
5151

5252
/// <summary>
53-
/// Creates an OpenGl context using SDL.
53+
/// Creates an OpenGL context using SDL.
5454
/// </summary>
5555
/// <param name="window">The window to associate the context with.</param>
5656
/// <param name="attributes">The context attributes.</param>
@@ -83,12 +83,12 @@ public SdlContext(WindowHandle window, GlContextStateHandle context, ISdl? sdl =
8383
public ISdl Api { get; }
8484

8585
/// <inheritdoc />
86-
public void Dispose() => Expect(Api.GlDestroyContext(Context), "dispose OpenGl context");
86+
public void Dispose() => Expect(Api.GlDestroyContext(Context), "dispose OpenGL context");
8787

8888
/// <inheritdoc />
8989
public unsafe void* LoadFunction(string functionName, string libraryNameHint)
9090
{
91-
var ret = libraryNameHint.Contains("EGl")
91+
var ret = libraryNameHint.Contains("EGL")
9292
? Api.EglGetProcAddress(libraryNameHint)
9393
: Api.GlGetProcAddress(functionName);
9494
Api.ClearError();

0 commit comments

Comments
 (0)