From c38debd39fac1e3d44b84e8092419da34f0b613d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Foucault?= Date: Mon, 7 Sep 2020 01:20:55 +0200 Subject: GPUVertBuf: GL Backend Isolation Part of the Vulkan port T68990 This makes a few changes in how the data is being handled by the backend to allow more flexibility in the future. The overall code logic is left unchanged. --- source/blender/gpu/opengl/gl_texture.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/gpu/opengl/gl_texture.cc') diff --git a/source/blender/gpu/opengl/gl_texture.cc b/source/blender/gpu/opengl/gl_texture.cc index 6151a2fc73e..6cff97215e8 100644 --- a/source/blender/gpu/opengl/gl_texture.cc +++ b/source/blender/gpu/opengl/gl_texture.cc @@ -120,10 +120,10 @@ bool GLTexture::init_internal(GPUVertBuf *vbo) GLenum internal_format = to_gl_internal_format(format_); if (GLEW_ARB_direct_state_access) { - glTextureBuffer(tex_id_, internal_format, gl_vbo->vbo_id); + glTextureBuffer(tex_id_, internal_format, gl_vbo->vbo_id_); } else { - glTexBuffer(target_, internal_format, gl_vbo->vbo_id); + glTexBuffer(target_, internal_format, gl_vbo->vbo_id_); } #ifndef __APPLE__ -- cgit v1.2.3