[Fix] (MG_Impl/GLImpl): fix DSA state queries and compatibility tests

Fix texture parameter getters and element array buffer binding queries.
Update framebuffer, texture, program, and VAO tests to match current OpenGL semantics, while preserving VAO 0 compatibility behavior.
This commit is contained in:
2026-06-10 23:33:59 +08:00
parent 72b1f50314
commit 75a0fc2c0c
6 changed files with 61 additions and 17 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ TEST_F(ProgramTest, CompileAndLink) {
ASSERT_EQ(uniformCount, 14);
GLint uniformNameMaxLength = 0;
GetProgramiv(program, GL_ACTIVE_UNIFORM_MAX_LENGTH, &uniformNameMaxLength);
ASSERT_EQ(uniformNameMaxLength, 12);
ASSERT_EQ(uniformNameMaxLength, static_cast<GLint>(sizeof("GreenMatrix0")));
ASSERT_EQ(GetAttribLocation(program, "Position"), 2);
ASSERT_EQ(GetAttribLocation(program, "fIn1"), 1);