X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Fbuffer_backend.h;h=06c128af15ddbab4f5b3479eab6548a36268be96;hb=6d2e2a0bb28496a8c25b441009bdd2a1a1e72d81;hp=1e5106a50095b838488fd3c2a95980b5aba8b302;hpb=e70662d7812464159f2e47f4bebb69d88f89ae93;p=libs%2Fgl.git diff --git a/source/backends/opengl/buffer_backend.h b/source/backends/opengl/buffer_backend.h index 1e5106a5..06c128af 100644 --- a/source/backends/opengl/buffer_backend.h +++ b/source/backends/opengl/buffer_backend.h @@ -15,8 +15,6 @@ class OpenGLBuffer: public NonCopyable protected: unsigned id = 0; - static OpenGLBuffer *scratch_binding; - OpenGLBuffer(); OpenGLBuffer(OpenGLBuffer &&); ~OpenGLBuffer(); @@ -24,6 +22,9 @@ protected: void allocate(); void sub_data(size_t, size_t, const void *); + unsigned get_multiplicity() const { return 1; } + + bool can_map() const { return true; } void *map(); bool unmap();