From d63f393b7bcabd7f6569b87a2dedbc8333c47554 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 30 Oct 2022 17:08:59 +0000 Subject: Setting texture unit on bind Always sets the target unit before binding, allows specifying the unit --- gfx/models/texture.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gfx/models/texture.h') diff --git a/gfx/models/texture.h b/gfx/models/texture.h index c3deb7b..2bbf1f4 100644 --- a/gfx/models/texture.h +++ b/gfx/models/texture.h @@ -15,7 +15,7 @@ public: static Cache cachedTexture; - void Bind() const; + void bind(GLenum unit = GL_TEXTURE0) const; private: glTexture m_texture; -- cgit v1.2.3