aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-18 11:30:06 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-18 11:30:06 +0200
commitb264115b1ca37dae3bba95029d0772c23b0afd45 (patch)
treef501cc7c917bcfd0602220e80a9e7ce9123863c4
parent08529a4a8e685637c1e733a6fff528a813d9a95c (diff)
edit comments
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index 408a243..1e68334 100644
--- a/main.c
+++ b/main.c
@@ -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) {