mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-07-10 01:34:41 -06:00
- The DSA_EXT fallback is now GLES-only. - We introduce a wrapper to act as a fallback for older GPUs - NamedBufferStorageEX.
20 lines
404 B
C++
20 lines
404 B
C++
#include "stdafx.h"
|
|
#include "ex.h"
|
|
|
|
namespace gl::ex
|
|
{
|
|
void glNamedBufferStorageEX(GLuint buffer, GLenum target, GLsizeiptr size, const void* data, GLbitfield flags)
|
|
{
|
|
GLint restore = GL_NONE;
|
|
glGetIntegerv(target, &restore);
|
|
|
|
glBindBuffer(target, buffer);
|
|
glBufferStorage(target, size, data, flags);
|
|
|
|
if (restore != buffer)
|
|
{
|
|
glBindBuffer(target, restore);
|
|
}
|
|
}
|
|
}
|