rpcs3/rpcs3/Emu/RSX/GL/glutils/ex.cpp
kd-11 06c8a87534 gl: Drop use of the retired glNamedBufferStorageEXT function
- The DSA_EXT fallback is now GLES-only.
- We introduce a wrapper to act as a fallback for older GPUs - NamedBufferStorageEX.
2026-06-15 02:31:47 +03:00

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);
}
}
}