Init SDL too

This commit is contained in:
Dan Balasescu 2025-06-23 22:10:36 +09:00
parent 28951012e3
commit 5d7ad9a1b8
No known key found for this signature in database
2 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,8 @@ namespace SDL.Tests
[Test] [Test]
public void TestBasic() public void TestBasic()
{ {
SDL_Init(0);
const IMG_InitFlags flags = IMG_InitFlags.IMG_INIT_PNG; const IMG_InitFlags flags = IMG_InitFlags.IMG_INIT_PNG;
var actual = IMG_Init(flags); var actual = IMG_Init(flags);
@ -37,6 +39,7 @@ namespace SDL.Tests
finally finally
{ {
IMG_Quit(); IMG_Quit();
SDL_Quit();
} }
} }
} }

View File

@ -12,6 +12,8 @@ namespace SDL.Tests
[Test] [Test]
public void TestBasic() public void TestBasic()
{ {
SDL_Init(0);
bool init = TTF_Init(); bool init = TTF_Init();
try try
@ -36,6 +38,7 @@ namespace SDL.Tests
finally finally
{ {
TTF_Quit(); TTF_Quit();
SDL_Quit();
} }
} }
} }