Minor changes
Former-commit-id: fd74c48a546663f4d4802826ee2d396b0874e2c9
This commit is contained in:
parent
57b90112fb
commit
2bfb798dd9
|
|
@ -3,7 +3,6 @@
|
||||||
// For conditions of distribution and use, see copyright notice in Config.hpp
|
// For conditions of distribution and use, see copyright notice in Config.hpp
|
||||||
|
|
||||||
#include <Nazara/Core/Error.hpp>
|
#include <Nazara/Core/Error.hpp>
|
||||||
#include <iostream>
|
|
||||||
#include <Nazara/Core/MemoryHelper.hpp>
|
#include <Nazara/Core/MemoryHelper.hpp>
|
||||||
#include <Nazara/Lua/Debug.hpp>
|
#include <Nazara/Lua/Debug.hpp>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -733,7 +733,7 @@ bool NzFile::FillHash(NzAbstractHash* hash) const
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
while (remainingSize > 0)
|
while (remainingSize > 0)
|
||||||
{
|
{
|
||||||
size = (remainingSize >= NAZARA_CORE_FILE_BUFFERSIZE) ? NAZARA_CORE_FILE_BUFFERSIZE : static_cast<unsigned int>(remainingSize);
|
size = std::min(remainingSize, static_cast<nzUInt64>(NAZARA_CORE_FILE_BUFFERSIZE));
|
||||||
if (file.Read(&buffer[0], sizeof(char), size) != sizeof(char)*size)
|
if (file.Read(&buffer[0], sizeof(char), size) != sizeof(char)*size)
|
||||||
{
|
{
|
||||||
NazaraError("Unable to read file");
|
NazaraError("Unable to read file");
|
||||||
|
|
|
||||||
|
|
@ -557,7 +557,7 @@ bool NzLuaInstance::IsOfType(int index, nzLuaType type) const
|
||||||
return lua_isuserdata(m_state, index) == 1;
|
return lua_isuserdata(m_state, index) == 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
NazaraError("Lua type unhandled (0x" + NzString::Number(type, 16) + ')');
|
NazaraError("Lua type not handled (0x" + NzString::Number(type, 16) + ')');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ namespace
|
||||||
switch (source)
|
switch (source)
|
||||||
{
|
{
|
||||||
case GL_DEBUG_SOURCE_API:
|
case GL_DEBUG_SOURCE_API:
|
||||||
ss << "OpenGL";
|
ss << "OpenGL API";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case GL_DEBUG_SOURCE_WINDOW_SYSTEM:
|
case GL_DEBUG_SOURCE_WINDOW_SYSTEM:
|
||||||
|
|
|
||||||
|
|
@ -924,7 +924,7 @@ bool NzRenderer::IsComponentTypeSupported(nzComponentType type)
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
NazaraError("Attribute type out of enum (0x" + NzString::Number(type, 16) + ')');
|
NazaraError("Attribute type not handled (0x" + NzString::Number(type, 16) + ')');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue