Get offset even without Shared Object Buffer optimisation

This commit is contained in:
korenkonder
2024-01-02 22:48:00 +03:00
parent a50799f0ee
commit fc3ce6aab5
3 changed files with 2 additions and 16 deletions
+2 -2
View File
@@ -135,13 +135,13 @@ GLuint obj_mesh_vertex_buffer::get_buffer() {
return 0;
}
#if SHARED_OBJECT_BUFFER
size_t obj_mesh_vertex_buffer::get_offset() {
#if SHARED_OBJECT_BUFFER
if (buffers[0])
return offset;
#endif
return 0;
}
#endif
GLsizeiptr obj_mesh_vertex_buffer::get_size() {
if (buffers[0])