Fixed last commit
Former-commit-id: 5034392dbdab232be71f8537638ed75c1c81eab8
This commit is contained in:
@@ -78,8 +78,7 @@ bool NzBuffer::CopyContent(NzBuffer& buffer)
|
||||
|
||||
bool r = Fill(ptr, 0, buffer.GetLength());
|
||||
|
||||
if (!buffer.Unmap())
|
||||
NazaraWarning("Failed to unmap source buffer");
|
||||
buffer.Unmap();
|
||||
|
||||
return r;
|
||||
}
|
||||
@@ -324,7 +323,7 @@ void NzBuffer::Unmap() const
|
||||
if (!m_impl)
|
||||
{
|
||||
NazaraError("Buffer not valid");
|
||||
return false;
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user