From aa41081573dab5679c8b01faac4aedd32f6faa88 Mon Sep 17 00:00:00 2001 From: Tomasz Kramkowski Date: Mon, 30 Apr 2018 12:43:41 +0100 Subject: 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. --- faqe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/faqe.c b/faqe.c index bc5bd2f..3ebf879 100644 --- a/faqe.c +++ b/faqe.c @@ -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); -- cgit v1.2.3-54-g00ecf