Fix some warnings

This commit is contained in:
Jérôme Leclercq 2020-10-30 23:08:27 +01:00
parent e5cd461bae
commit 73e86407b3
2 changed files with 4 additions and 1 deletions

View File

@ -18,8 +18,11 @@ namespace Nz
if constexpr (std::is_same_v<T, std::decay_t<First>>) if constexpr (std::is_same_v<T, std::decay_t<First>>)
return std::forward<First>(first); return std::forward<First>(first);
else else
{
NazaraUnused(first);
return Get(std::forward<Args>(args)...); return Get(std::forward<Args>(args)...);
} }
}
static auto Get() static auto Get()
{ {

View File

@ -19,7 +19,7 @@ namespace Nz
bool OpenGLBuffer::Fill(const void* data, UInt64 offset, UInt64 size) bool OpenGLBuffer::Fill(const void* data, UInt64 offset, UInt64 size)
{ {
m_buffer.SubData(offset, size, data); m_buffer.SubData(GLintptr(offset), GLsizeiptr(size), data);
return true; return true;
} }