diff options
| author | Stenzek <stenzek@gmail.com> | 2017-07-20 15:25:29 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-07-30 17:43:59 +1000 |
| commit | cd502990fa63e63c727d99ebf0defb3cf40583f9 (patch) | |
| tree | 0c22866328492d2e5fc34cedd495d71b032e679a /Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp | |
| parent | 901bf9c257347c91101ca25e74037684dd519968 (diff) | |
OGL: Uber shader support
Diffstat (limited to 'Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp b/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp index 69a6229741..d3b98cd3a7 100644 --- a/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp +++ b/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp @@ -57,6 +57,7 @@ GLVertexFormat::GLVertexFormat(const PortableVertexDeclaration& _vtx_decl) glGenVertexArrays(1, &VAO); glBindVertexArray(VAO); + 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); @@ -74,8 +75,6 @@ GLVertexFormat::GLVertexFormat(const PortableVertexDeclaration& _vtx_decl) SetPointer(SHADER_TEXTURE0_ATTRIB + i, vertex_stride, _vtx_decl.texcoords[i]); SetPointer(SHADER_POSMTX_ATTRIB, vertex_stride, _vtx_decl.posmtx); - - vm->m_last_vao = VAO; } GLVertexFormat::~GLVertexFormat() |
