Fix a lot of small errors/warnings

This commit is contained in:
Jérôme Leclercq
2020-08-28 15:42:19 +02:00
parent 0ff0425045
commit 8d873a8307
25 changed files with 85 additions and 926 deletions

View File

@@ -40,7 +40,7 @@ namespace Nz::GL
return context.glUnmapBuffer(ToOpenGL(m_target)) == GL_TRUE;
}
inline GLuint Buffer::CreateHelper(OpenGLDevice& device, const Context& context)
inline GLuint Buffer::CreateHelper(OpenGLDevice& /*device*/, const Context& context)
{
GLuint sampler = 0;
context.glGenBuffers(1U, &sampler);

View File

@@ -22,7 +22,7 @@ namespace Nz::GL
{
class Context;
using GLFunction = int(*)();
using GLFunction = void(*)(void);
class NAZARA_OPENGLRENDERER_API Loader
{

View File

@@ -67,7 +67,7 @@ namespace Nz::GL
//< TODO: Handle errors
}
inline GLuint Texture::CreateHelper(OpenGLDevice& device, const Context& context)
inline GLuint Texture::CreateHelper(OpenGLDevice& /*device*/, const Context& context)
{
GLuint texture = 0;
context.glGenTextures(1U, &texture);

View File

@@ -9,7 +9,7 @@
namespace Nz::GL
{
template<typename F>
static VertexArray VertexArray::Build(const Context& context, F&& callback)
VertexArray VertexArray::Build(const Context& context, F&& callback)
{
VertexArray vao;
if (!vao.Create(context))