Fix a shitload of warnings in 64 bits mode
Former-commit-id: d3d40b9f364a0a27a3411586e62a16443ee5de00 [formerly 71282c40087232985fa19b8dcbd0d75bd4fcd97b] Former-commit-id: c11c69d4c1f40bdd33f721cb33c68c4144771510
This commit is contained in:
@@ -227,7 +227,8 @@ namespace Nz
|
||||
}
|
||||
|
||||
GLenum type;
|
||||
UInt8* offset = reinterpret_cast<UInt8*>(s_indexBuffer->GetStartOffset());
|
||||
UInt8* offset = nullptr;
|
||||
offset += s_indexBuffer->GetStartOffset();
|
||||
|
||||
if (s_indexBuffer->HasLargeIndices())
|
||||
{
|
||||
@@ -290,7 +291,8 @@ namespace Nz
|
||||
}
|
||||
|
||||
GLenum type;
|
||||
UInt8* offset = reinterpret_cast<UInt8*>(s_indexBuffer->GetStartOffset());
|
||||
UInt8* offset = nullptr;
|
||||
offset += s_indexBuffer->GetStartOffset();
|
||||
|
||||
if (s_indexBuffer->HasLargeIndices())
|
||||
{
|
||||
|
||||
@@ -364,7 +364,7 @@ namespace Nz
|
||||
return Image::GetMaxLevel(m_impl->type, m_impl->width, m_impl->height, m_impl->depth);
|
||||
}
|
||||
|
||||
unsigned int Texture::GetMemoryUsage() const
|
||||
std::size_t Texture::GetMemoryUsage() const
|
||||
{
|
||||
#if NAZARA_RENDERER_SAFE
|
||||
if (!m_impl)
|
||||
@@ -399,7 +399,7 @@ namespace Nz
|
||||
return size * PixelFormat::GetBytesPerPixel(m_impl->format);
|
||||
}
|
||||
|
||||
unsigned int Texture::GetMemoryUsage(UInt8 level) const
|
||||
std::size_t Texture::GetMemoryUsage(UInt8 level) const
|
||||
{
|
||||
#if NAZARA_UTILITY_SAFE
|
||||
if (!m_impl)
|
||||
|
||||
Reference in New Issue
Block a user