From 5d7ad9a1b8167d0fd3d5881b0361411fb68f8a15 Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Mon, 23 Jun 2025 22:10:36 +0900 Subject: [PATCH] Init SDL too --- SDL3-CS.Tests/TestImage.cs | 3 +++ SDL3-CS.Tests/TestTTF.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/SDL3-CS.Tests/TestImage.cs b/SDL3-CS.Tests/TestImage.cs index 545c3bc..845cce2 100644 --- a/SDL3-CS.Tests/TestImage.cs +++ b/SDL3-CS.Tests/TestImage.cs @@ -12,6 +12,8 @@ namespace SDL.Tests [Test] public void TestBasic() { + SDL_Init(0); + const IMG_InitFlags flags = IMG_InitFlags.IMG_INIT_PNG; var actual = IMG_Init(flags); @@ -37,6 +39,7 @@ namespace SDL.Tests finally { IMG_Quit(); + SDL_Quit(); } } } diff --git a/SDL3-CS.Tests/TestTTF.cs b/SDL3-CS.Tests/TestTTF.cs index 48fc183..bb3a625 100644 --- a/SDL3-CS.Tests/TestTTF.cs +++ b/SDL3-CS.Tests/TestTTF.cs @@ -12,6 +12,8 @@ namespace SDL.Tests [Test] public void TestBasic() { + SDL_Init(0); + bool init = TTF_Init(); try @@ -36,6 +38,7 @@ namespace SDL.Tests finally { TTF_Quit(); + SDL_Quit(); } } }