[Fix] (MG_Impl/GLImpl, MG_Backend): fix OpenGL 3.1 piglit cases

This commit is contained in:
2026-07-02 10:34:17 +08:00
parent 233277d94b
commit fabae2465b
7 changed files with 52 additions and 2 deletions
@@ -1275,6 +1275,8 @@ namespace MobileGL::MG_Impl::GLImpl {
return;
}
if (!BufferImpl::ValidateBufferName(buffer, true)) return;
Bool doesBufferObjectCreated = MG_State::pGLContext->ValidateBufferObject(buffer);
if (!doesBufferObjectCreated) {
MG_State::pGLContext->CreateBufferObject(buffer);
@@ -1304,6 +1306,8 @@ namespace MobileGL::MG_Impl::GLImpl {
return;
}
if (!BufferImpl::ValidateBufferName(buffer, true)) return;
Bool doesBufferObjectCreated = MG_State::pGLContext->ValidateBufferObject(buffer);
if (!doesBufferObjectCreated) {
MG_State::pGLContext->CreateBufferObject(buffer);