Add the new glBufferData stream buffer type to the streambuffer class which is hugely more efficient on Mali drivers.

This commit is contained in:
Ryan Houdek
2013-07-27 00:40:16 +00:00
parent a9ebd7d3e5
commit 319e29e7d0
2 changed files with 16 additions and 5 deletions

View File

@ -18,13 +18,14 @@
namespace OGL
{
enum StreamType {
DETECT_MASK = 0x3F,
DETECT_MASK = 0x7F,
STREAM_DETECT = (1 << 0),
MAP_AND_ORPHAN = (1 << 1),
MAP_AND_SYNC = (1 << 2),
MAP_AND_RISK = (1 << 3),
PINNED_MEMORY = (1 << 4),
BUFFERSUBDATA = (1 << 5)
BUFFERSUBDATA = (1 << 5),
BUFFERDATA = (1 << 6)
};
class StreamBuffer {