diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2018-04-30 12:43:41 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2018-04-30 12:43:41 +0100 |
commit | aa41081573dab5679c8b01faac4aedd32f6faa88 (patch) | |
tree | acb22cc9d6b579baa6fedc43da5ddd0b3aa60b21 | |
parent | 55d9afbdce06c3397670cb3bba75a33ad97c22fe (diff) | |
download | faqe-aa41081573dab5679c8b01faac4aedd32f6faa88.tar.gz faqe-aa41081573dab5679c8b01faac4aedd32f6faa88.tar.xz faqe-aa41081573dab5679c8b01faac4aedd32f6faa88.zip |
Fix proj mat not being set requiring a resize before anything shows
The projection matrix uniform was being used before the shader program
was being used. This caused nothing to get rendered until a window
resize.
-rw-r--r-- | faqe.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -84,6 +84,7 @@ int main(int argc, char **argv) { "proj", &uni.proj }, }); + gl_prog_use(prog); viewport(uni.proj, WIDTH, HEIGHT); gl_enable(GL_DEPTH_TEST); |