From 2c9c4d0f011c9871c111333de15543f9e81c0a75 Mon Sep 17 00:00:00 2001 From: degasus Date: Fri, 8 Mar 2013 10:23:27 +0100 Subject: [PATCH] remove syncing on hacked buffer nvidia does wait for their gpu on syncing, so removing it. But now, we have to recheck it on every plattform --- Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp b/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp index 24951219fa..616c3e7c08 100644 --- a/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp +++ b/Source/Plugins/Plugin_VideoOGL/Src/StreamBuffer.cpp @@ -78,7 +78,6 @@ void StreamBuffer::Alloc ( size_t size, u32 stride ) break; case MAP_AND_SYNC: case PINNED_MEMORY: - case MAP_AND_RISK: // insert waiting slots for used memory for(u32 i=SLOT(m_used_iterator); i= m_size) { + m_iterator_aligned = 0; + } break; case BUFFERSUBDATA: m_iterator_aligned = 0; @@ -183,10 +187,6 @@ void StreamBuffer::Init() glBindBuffer(m_buffertype, m_buffer); break; case MAP_AND_RISK: - fences = new GLsync[SYNC_POINTS]; - for(u32 i=0; i