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]
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();
}
}
}

View File

@ -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();
}
}
}