mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user