[Chore] (MG_Test/Program): test if PreLink only passes

This commit is contained in:
2025-08-14 17:41:50 +08:00
parent a39a46c7e3
commit 0cba505ad0
2 changed files with 2 additions and 2 deletions
@@ -59,7 +59,7 @@ namespace MobileGL {
THROW_EXCEPTION(e); THROW_EXCEPTION(e);
} }
PostLink(); // PostLink();
} }
void ProgramObject::MarkAsDeleted() { void ProgramObject::MarkAsDeleted() {
+1 -1
View File
@@ -109,10 +109,10 @@ TEST_F(ProgramTest, CompileAndLink) {
GLuint program = CreateProgram(); GLuint program = CreateProgram();
AttachShader(program, vs); AttachShader(program, vs);
AttachShader(program, fs); AttachShader(program, fs);
return;
printf("Linking program...\n"); printf("Linking program...\n");
LinkProgram(program); LinkProgram(program);
printf("Program linked...\n"); printf("Program linked...\n");
return;
EXPECT_EQ(GetUniformLocation(program, "ProjMat"), 0); EXPECT_EQ(GetUniformLocation(program, "ProjMat"), 0);
EXPECT_EQ(GetUniformLocation(program, "Gray"), 1); EXPECT_EQ(GetUniformLocation(program, "Gray"), 1);