Fixed crash on Utility uninitialisation
Former-commit-id: ef9f53674fe21c4d7780e68c62f7981554663a85
This commit is contained in:
@@ -95,6 +95,10 @@ void NzGraphics::Uninitialize()
|
||||
// Libération du module
|
||||
s_moduleReferenceCounter = 0;
|
||||
|
||||
// Libération de l'atlas s'il vient de nous
|
||||
if (NzFont::GetDefaultAtlas()->GetStorage() & nzDataStorage_Hardware)
|
||||
NzFont::SetDefaultAtlas(nullptr);
|
||||
|
||||
// Loaders
|
||||
NzLoaders_Mesh_Unregister();
|
||||
NzLoaders_OBJ_Unregister();
|
||||
|
||||
@@ -7,6 +7,11 @@
|
||||
#include <Nazara/Renderer/Texture.hpp>
|
||||
#include <Nazara/Graphics/Debug.hpp>
|
||||
|
||||
nzUInt32 NzGuillotineTextureAtlas::GetStorage() const
|
||||
{
|
||||
return nzDataStorage_Hardware;
|
||||
}
|
||||
|
||||
NzAbstractImage* NzGuillotineTextureAtlas::ResizeImage(NzAbstractImage* oldImage, const NzVector2ui& size) const
|
||||
{
|
||||
std::unique_ptr<NzTexture> newTexture(new NzTexture);
|
||||
|
||||
@@ -73,6 +73,11 @@ unsigned int NzGuillotineImageAtlas::GetLayerCount() const
|
||||
return m_layers.size();
|
||||
}
|
||||
|
||||
nzUInt32 NzGuillotineImageAtlas::GetStorage() const
|
||||
{
|
||||
return nzDataStorage_Software;
|
||||
}
|
||||
|
||||
bool NzGuillotineImageAtlas::Insert(const NzImage& image, NzRectui* rect, bool* flipped, unsigned int* layerIndex)
|
||||
{
|
||||
if (m_layers.empty())
|
||||
|
||||
Reference in New Issue
Block a user