diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-04-22 12:50:22 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-22 12:50:22 +1000 |
| commit | 59c0e51f5b84874dca2cbecfe750e3f1de66405d (patch) | |
| tree | 5a155558fc1b75fa629783c3a4a1e465858f221f /Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp | |
| parent | 93be178f28a55ea1bb3fa796b32eecae482a53d1 (diff) | |
| parent | 356ebdf5098a24a70c04392ef7bcad7b762affbe (diff) | |
Merge pull request #8000 from stenzek/more-videocommon-cleanup
Additional cleanup/fixes from VideoCommon merge
Diffstat (limited to 'Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp b/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp index 50a6276c72..c95e1f8472 100644 --- a/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp +++ b/Source/Core/VideoBackends/OGL/NativeVertexFormat.cpp @@ -80,6 +80,7 @@ GLVertexFormat::GLVertexFormat(const PortableVertexDeclaration& vtx_decl) GLVertexFormat::~GLVertexFormat() { + ProgramShaderCache::InvalidateVertexFormatIfBound(VAO); glDeleteVertexArrays(1, &VAO); } } // namespace OGL |
