ogl: remove glMapBuffer as it isn't in gles

This commit is contained in:
degasus
2013-08-19 19:20:10 +02:00
parent 1675f56f02
commit 23ce6b9227
4 changed files with 4 additions and 10 deletions

View File

@ -194,7 +194,7 @@ void StreamBuffer::Init()
case MAP_AND_RISK:
glBindBuffer(m_buffertype, m_buffer);
glBufferData(m_buffertype, m_size, NULL, GL_STREAM_DRAW);
pointer = (u8*)glMapBuffer(m_buffertype, GL_WRITE_ONLY);
pointer = (u8*)glMapBufferRange(m_buffertype, 0, m_size, GL_MAP_WRITE_BIT);
glUnmapBuffer(m_buffertype);
if(!pointer)
ERROR_LOG(VIDEO, "Buffer allocation failed");