[buffer_storage] Implement ARB_buffer_storage. Disable it for GL_ARRAY_BUFFER due to a bug in Nvidia's drivers that causes black screen with it.

This commit is contained in:
Ryan Houdek
2013-12-27 10:56:03 -06:00
parent 4d1f113ab1
commit ce99921c20
6 changed files with 56 additions and 13 deletions

View File

@ -18,14 +18,15 @@
namespace OGL
{
enum StreamType {
DETECT_MASK = 0x7F,
DETECT_MASK = 0xFF,
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),
BUFFERDATA = (1 << 6)
BUFFERDATA = (1 << 6),
BUFFERSTORAGE = (1 << 7),
};
class StreamBuffer {