[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
@@ -3293,7 +3293,10 @@ void main() {
}
auto vtxUploadOk = UploadAndBindVertexBuffers(frame.commandBuffer, vao, drawParams);
MOBILEGL_ASSERT(vtxUploadOk, "SetupDraw skipped: failed to upload vertex buffers");
if (!vtxUploadOk) {
MGLOG_E("SetupDraw skipped: failed to upload vertex buffers");
return false;
}
if (aspects & DrawSetupAspect::IndexBuffer) {
auto idxUploadOk = UploadAndBindIndexBuffer(frame, vao, pIndexBufferView);