Fix debug errors

Former-commit-id: 59e7db4085fc05a366af6cfb9ba99c19f058a21b
This commit is contained in:
Lynix
2015-06-11 14:14:25 +02:00
parent 48a54dfa5c
commit 35f6e0d376
2 changed files with 3 additions and 3 deletions

View File

@@ -874,7 +874,7 @@ void NzRenderTexture::OnContextDestroy(const NzContext* context)
#ifdef NAZARA_DEBUG #ifdef NAZARA_DEBUG
if (m_impl->context != context) if (m_impl->context != context)
{ {
NazaraInternalError("Not listening to " + NzString::Pointer(font)); NazaraInternalError("Not listening to " + NzString::Pointer(context));
return; return;
} }
#endif #endif

View File

@@ -428,7 +428,7 @@ void NzFont::OnAtlasCleared(const NzAbstractAtlas* atlas)
if (m_atlas.get() != atlas) if (m_atlas.get() != atlas)
{ {
NazaraInternalError("Notified by a non-listening-to resource"); NazaraInternalError("Notified by a non-listening-to resource");
return false; // On ne veut plus être notifié par cette ressource, évidemment return;
} }
#endif #endif
@@ -449,7 +449,7 @@ void NzFont::OnAtlasLayerChange(const NzAbstractAtlas* atlas, NzAbstractImage* o
if (m_atlas.get() != atlas) if (m_atlas.get() != atlas)
{ {
NazaraInternalError("Notified by a non-listening-to resource"); NazaraInternalError("Notified by a non-listening-to resource");
return false; // On ne veut plus être notifié par cette ressource, évidemment return;
} }
#endif #endif