mirror of https://github.com/ppy/SDL3-CS.git
Init SDL too
This commit is contained in:
parent
28951012e3
commit
5d7ad9a1b8
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue