From e685d198bd4cc726275079579dadf1d7aa20e987 Mon Sep 17 00:00:00 2001 From: degasus Date: Thu, 29 Aug 2013 21:03:48 +0200 Subject: [PATCH] ogl: only free use fences This fixes some opengl error when not all fences are created. --- .../Plugin_VideoOGL/Src/StreamBuffer.cpp | 18 +++++++++++------- .../Plugins/Plugin_VideoOGL/Src/StreamBuffer.h | 1 + 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp b/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp index 8c006e2587..814a628d1c 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp @@ -222,20 +222,15 @@ void StreamBuffer::Shutdown() { switch(m_uploadtype) { case MAP_AND_SYNC: - for(u32 i=0; i