diff --git a/src/Graphics/OpenGLContext/opengl_CachedFunctions.h b/src/Graphics/OpenGLContext/opengl_CachedFunctions.h index 4a69cc08..12b64dae 100644 --- a/src/Graphics/OpenGLContext/opengl_CachedFunctions.h +++ b/src/Graphics/OpenGLContext/opengl_CachedFunctions.h @@ -109,13 +109,13 @@ namespace opengl { template - class CachedBind : public Cached1 + class CachedBind : public Cached2 { public: CachedBind(Bind _bind) : m_bind(_bind) {} void bind(graphics::Parameter _target, graphics::ObjectHandle _name) { - if (update(_name)) + if (update(_target, _name)) m_bind(GLenum(_target), GLuint(_name)); }