diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-18 15:48:25 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-18 15:48:25 +0200 |
commit | 3495a949552769c33c50788529f447ffe298e46a (patch) | |
tree | f9110be4cd558a06884e73d0115583fdeaf79893 | |
parent | def25f92deb08587a9248ae529d3dbd39f9f772c (diff) | |
parent | b264115b1ca37dae3bba95029d0772c23b0afd45 (diff) |
Merge branch 'bug2' of pipeframe.xyz:school/project-iprj into bug2
-rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -43,7 +43,7 @@ GLuint link_shaders(GLuint vert, GLuint frag) { void test(const char* label, GLuint shader) { printf("%s:\n", label); - // list all ACTIVE uniforms in shader: + // list all ACTIVE uniforms in shader GLint count; glGetProgramiv(shader, GL_ACTIVE_UNIFORMS, &count); printf("\tactive uniform count: %d\n", count); @@ -54,10 +54,9 @@ void test(const char* label, GLuint shader) { printf("\t(location = %u) = \"%.*s\"\n", i, length, name); } - // directly get uniform location + // try directly geting uniform location GLint uniform_location = glGetUniformLocation(shader, "test"); printf("\t`test` uniform location = %d\n", uniform_location); - } int main(int argc, char** argv) { |