From fa134b630bdde1df135b41f9b1687ba52a46ac95 Mon Sep 17 00:00:00 2001 From: Jarrett Johnson Date: Sun, 25 Aug 2024 13:52:41 -0400 Subject: [PATCH] mark bind() calls with override where needed --- layer0/GenericBuffer.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/layer0/GenericBuffer.h b/layer0/GenericBuffer.h index 8ec907860..f9e9b36f5 100644 --- a/layer0/GenericBuffer.h +++ b/layer0/GenericBuffer.h @@ -389,7 +389,7 @@ class VertexBuffer : public GenericBuffer { VertexBuffer(buffer_layout layout = buffer_layout::SEPARATE, GLenum usage = GL_STATIC_DRAW); - void bind() const; + void bind() const override; void bind(GLuint prg, int index = -1); @@ -413,7 +413,7 @@ class IndexBuffer : public GenericBuffer { public: using GenericBuffer::GenericBuffer; - void bind() const; + void bind() const override; void unbind(); GLenum bufferType() const override; }; @@ -447,7 +447,7 @@ class renderBuffer_t : public gpuBuffer_t { freeBuffer(); } - void bind() const; + void bind() const override; void unbind() const; private: @@ -551,7 +551,7 @@ class textureBuffer_t : public gpuBuffer_t { freeBuffer(); } - void bind() const; + void bind() const override; /** * Binds the texture to a specific texture unit * @param textureUnit The texture unit to bind to (0, 1, 2, etc) @@ -618,7 +618,7 @@ class frameBuffer_t : public gpuBuffer_t { void attach_renderbuffer(renderBuffer_t * renderbuffer, fbo::attachment loc); void print_fbo(); - void bind() const; + void bind() const override; void unbind() const; private: void genBuffer(); @@ -657,7 +657,7 @@ class renderTarget_t : public gpuBuffer_t { renderTarget_t(int width, int height) : _size(width, height) {} ~renderTarget_t(); - void bind() const { bind(true); }; + void bind() const override { bind(true); }; void bind(bool clear) const; void bindFBORBO() const {