Skip to content

Commit

Permalink
SDL3 is now the default FNAPlatform!
Browse files Browse the repository at this point in the history
  • Loading branch information
flibitijibibo committed Feb 12, 2025
1 parent 696db3f commit d23e3e1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/FNA3D
8 changes: 4 additions & 4 deletions src/FNAPlatform/FNAPlatform.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ static FNAPlatform()
* -flibit
*/

bool useSDL3 = Environment.GetEnvironmentVariable("FNA_PLATFORM_BACKEND") == "SDL3";
bool useSDL2 = Environment.GetEnvironmentVariable("FNA_PLATFORM_BACKEND") == "SDL2";

if (useSDL3)
if (!useSDL2)
{
SetEnv = SDL3_FNAPlatform.SetEnv;
}
Expand Down Expand Up @@ -106,7 +106,7 @@ static FNAPlatform()
Environment.GetEnvironmentVariable("FNA_SDL2_FORCE_BASE_PATH")
);

if (useSDL3)
if (!useSDL2)
{
Malloc = SDL3_FNAPlatform.Malloc;
Free = SDL3.SDL.SDL_free;
Expand Down Expand Up @@ -219,7 +219,7 @@ static FNAPlatform()

FNALoggerEXT.Initialize();

if (useSDL3)
if (!useSDL2)
{
AppDomain.CurrentDomain.ProcessExit += SDL3_FNAPlatform.ProgramExit;
TitleLocation = SDL3_FNAPlatform.ProgramInit(args);
Expand Down

0 comments on commit d23e3e1

Please sign in to comment.