Fix accidental call to ARB_direct_state_access function instead of EXT

* The ARB version isn't emulated so it wouldn't work on systems without
  GL 4.5/ARB_dsa.
This commit is contained in:
baldurk
2017-03-10 16:09:03 +00:00
parent c89bcfbb7a
commit 7fe94920d5
+2 -2
View File
@@ -453,7 +453,7 @@ bool GLResourceManager::Prepare_InitialState(GLResource res)
GLuint buf = 0;
gl.glGenBuffers(1, &buf);
gl.glBindBuffer(eGL_COPY_WRITE_BUFFER, buf);
gl.glNamedBufferData(buf, (GLsizeiptr)length, NULL, eGL_STATIC_READ);
gl.glNamedBufferDataEXT(buf, (GLsizeiptr)length, NULL, eGL_STATIC_READ);
// bind the live buffer for copying
gl.glBindBuffer(eGL_COPY_READ_BUFFER, res.name);
@@ -1060,7 +1060,7 @@ bool GLResourceManager::Serialise_InitialState(ResourceId resid, GLResource res)
GLuint buf = 0;
gl.glGenBuffers(1, &buf);
gl.glBindBuffer(eGL_COPY_WRITE_BUFFER, buf);
gl.glNamedBufferData(buf, (GLsizeiptr)len, data, eGL_STATIC_DRAW);
gl.glNamedBufferDataEXT(buf, (GLsizeiptr)len, data, eGL_STATIC_DRAW);
SAFE_DELETE_ARRAY(data);