mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user