mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-08 04:08:32 +09:00
[Fix] (MG_State/Program): add more prints in PostLink() to debug
This commit is contained in:
@@ -155,6 +155,10 @@ namespace MobileGL {
|
||||
m_uboScratch.resize(m_metadata.uboSize, 0);
|
||||
|
||||
auto& types = m_metadata.plainUniformMemberTypes;
|
||||
printf("types.size() = %u\n", types.size());
|
||||
printf("m_uniformOffsets.size() = %u\n", m_uniformOffsets.size());
|
||||
fflush(stdout);
|
||||
|
||||
assert(types.size() == m_uniformOffsets.size());
|
||||
m_uniformTypes.resize(m_uniformOffsets.size());
|
||||
for (const auto& [name, type] : types) {
|
||||
|
||||
@@ -111,7 +111,7 @@ TEST_F(ProgramTest, CompileAndLink) {
|
||||
AttachShader(program, fs);
|
||||
printf("Linking program...\n");
|
||||
LinkProgram(program);
|
||||
printf("Program linked...\n");
|
||||
printf("Program linked.\n");
|
||||
|
||||
EXPECT_EQ(GetUniformLocation(program, "ProjMat"), 0);
|
||||
EXPECT_EQ(GetUniformLocation(program, "Gray"), 1);
|
||||
|
||||
Reference in New Issue
Block a user