small fixes for windows
This commit is contained in:
@@ -6,6 +6,9 @@
|
||||
#include "IInputManager.hpp"
|
||||
#include "elements/AudioEngine.hpp"
|
||||
|
||||
#define FREEIMAGE_LIB
|
||||
#include "FI/FreeImage.h"
|
||||
|
||||
TSE::IWindow* TSE::IWindow::lastWindow = nullptr;
|
||||
|
||||
bool TSE::IWindow::BaseInit() const
|
||||
@@ -14,6 +17,7 @@ bool TSE::IWindow::BaseInit() const
|
||||
Debug::Init();
|
||||
Debug::Log("TSE:" + TSE_VERSION_STRING);
|
||||
AudioEngine::Init();
|
||||
FreeImage_Initialise(true);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -29,6 +33,7 @@ TSE::Vector2 TSE::IWindow::GetSize() const
|
||||
|
||||
TSE::IWindow::~IWindow()
|
||||
{
|
||||
FreeImage_DeInitialise();
|
||||
AudioEngine::Destroy();
|
||||
IInputManager::instance()->Delete();
|
||||
Time::Destroy();
|
||||
|
||||
Reference in New Issue
Block a user