summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authordegasus <wickmarkus@web.de>2013-08-20 19:09:55 +0200
committerdegasus <wickmarkus@web.de>2013-08-20 19:09:55 +0200
commit642657d07ca77d0018e4142ffa7e06c9bbcfe39f (patch)
tree20a1743da05193c6cf1dd43d285cdf063ddbec64 /Source
parentcc03d9697d85d710db668e18487adf250d7ff365 (diff)
ogl: explain why pinned memory is disabled for index buffer
Diffstat (limited to 'Source')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp b/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp
index 78f85e717a..8dc884ea63 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/VertexManager.cpp
@@ -61,6 +61,10 @@ void VertexManager::CreateDeviceObjects()
{
s_vertexBuffer = new StreamBuffer(GL_ARRAY_BUFFER, MAX_VBUFFER_SIZE);
m_vertex_buffers = s_vertexBuffer->getBuffer();
+
+ // Pinned memory is disabled for index buffer as the amd driver (the only one with pinned memory support) seems
+ // to be broken. We just get flickering/black rendering when using pinned memory here -- degasus - 2013/08/20
+ // Please see issue #6105 on google code. Let's hope buffer storage solves this issues.
s_indexBuffer = new StreamBuffer(GL_ELEMENT_ARRAY_BUFFER, MAX_IBUFFER_SIZE, (StreamType)(DETECT_MASK & ~PINNED_MEMORY));
m_index_buffers = s_indexBuffer->getBuffer();