Skip to content

Commit 8dc7148

Browse files
authored
Merge pull request #2404 from dotnet/hotfix/sdlcontext-fail-on-success
[3.0] Fix SdlContext throwing for errors
2 parents 816377b + 9729e81 commit 8dc7148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sources/SDL/SDL/SdlContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public void SwapInterval(int interval) =>
113113

114114
private void Expect(int ec, string action)
115115
{
116-
if (ec is 0)
116+
if (ec is 1)
117117
{
118118
return;
119119
}

0 commit comments

Comments
 (0)