Befor NewSurface Fix
This commit is contained in:
@@ -20,8 +20,6 @@
|
||||
|
||||
using UtilityEngine::cString;
|
||||
|
||||
|
||||
|
||||
namespace UtilityEngine {
|
||||
/* Singleton */
|
||||
class EXPORT_FROM_MYDLL cUtility
|
||||
@@ -51,17 +49,14 @@ namespace UtilityEngine {
|
||||
void Message( const cString& msg, const cString& funcName = "", const eTypeSDL typeSDL = eTypeSDL::NONE ) const;
|
||||
|
||||
void PrintVersion( const eTypeSDL typeSDL = eTypeSDL::ALL ) const;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
///Functions
|
||||
void VersionParser( const cString& runCompiled, const SDL_version& version, const cString& type ) const;
|
||||
|
||||
|
||||
private:
|
||||
///Variables
|
||||
static cUtility* sp_inst;// = nullptr
|
||||
|
||||
};/// END CLASS DEFINITION cUtility
|
||||
}/// END NAMESPACE DEFINITION UtilityEngine
|
||||
#endif/// END IFNDEF _CUTILITY_HPP_
|
||||
@@ -77,7 +77,8 @@ const bool cVideo::Setup()
|
||||
|
||||
void cVideo::CleanUp()
|
||||
{
|
||||
SDL_DestroyWindow(mp_window);
|
||||
if (mp_window != nullptr)
|
||||
SDL_DestroyWindow(mp_window);
|
||||
mp_window = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user