Skip to content

Commit

Permalink
Merge pull request #2404 from dotnet/hotfix/sdlcontext-fail-on-success
Browse files Browse the repository at this point in the history
[3.0] Fix SdlContext throwing for errors
  • Loading branch information
curin authored Dec 30, 2024
2 parents 816377b + 9729e81 commit 8dc7148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/SDL/SDL/SdlContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public void SwapInterval(int interval) =>

private void Expect(int ec, string action)
{
if (ec is 0)
if (ec is 1)
{
return;
}
Expand Down

0 comments on commit 8dc7148

Please sign in to comment.