diff options
| author | degasus <wickmarkus@web.de> | 2012-12-29 12:50:42 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2012-12-29 12:50:42 +0100 |
| commit | 30dd9c2e17c4b7dc5bf623f51e627ca1c0d0b940 (patch) | |
| tree | 7e7d48719a033491a1d6165a2c9d0d64b1c88fbd /Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp | |
| parent | cd54d6efdd754afb5dadd763873fc9e635fc4ae5 (diff) | |
always calls glBindBuffer(0) after disabling vao
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp')
| -rw-r--r-- | Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp index 40dac17df6..d90f651a82 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp @@ -357,9 +357,6 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo glBindBuffer(GL_ARRAY_BUFFER, vbo_it->second.vbo); glBufferData(GL_ARRAY_BUFFER, 4*4*sizeof(GLfloat), vertices, GL_STREAM_DRAW); - // TODO: this after merging with graphic_update - glBindBuffer(GL_ARRAY_BUFFER, 0); - vbo_it->second.targetSource = targetSource; } @@ -368,6 +365,7 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo // TODO: this after merging with graphic_update glBindVertexArray(0); + glBindBuffer(GL_ARRAY_BUFFER, 0); GL_REPORT_ERRORD(); |
