diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2017-09-03 03:13:40 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-03 03:13:40 +0200 |
| commit | ab27f0f78cc52a5c49864f53913215a31bade62d (patch) | |
| tree | 93bc992c0061c1cf92f232bb42c5564b48673f81 /Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp | |
| parent | 632cb35be685c9d8d70b7c567573d80e7533b870 (diff) | |
| parent | 2237a6a04c11fa9253f68235fbe2bc060777cecd (diff) | |
Merge pull request #6010 from lioncash/vertex
OGL/VertexManager: Make vertex and index buffer handles private
Diffstat (limited to 'Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp b/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp index 816cdf3754..df24809ae0 100644 --- a/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp +++ b/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp @@ -60,8 +60,8 @@ GLVertexFormat::GLVertexFormat(const PortableVertexDeclaration& _vtx_decl) ProgramShaderCache::BindVertexFormat(this); // the element buffer is bound directly to the vao, so we must it set for every vao - glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vm->m_index_buffers); - glBindBuffer(GL_ARRAY_BUFFER, vm->m_vertex_buffers); + glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, vm->GetIndexBufferHandle()); + glBindBuffer(GL_ARRAY_BUFFER, vm->GetVertexBufferHandle()); SetPointer(SHADER_POSITION_ATTRIB, vertex_stride, _vtx_decl.position); |
