Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add missing shader setup in delayed mode

  • Loading branch information...
commit 97021482065414ffd680adae139f9d2a3e3f4d23 1 parent c19da96
@andoma andoma authored
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/ui/glw/glw_opengl_shaders.c
View
6 src/ui/glw/glw_opengl_shaders.c
@@ -168,6 +168,12 @@ render_unlocked(glw_root_t *gr)
glw_program_set_uniform_color(gbr, rj->rgb_mul.r, rj->rgb_mul.g,
rj->rgb_mul.b, rj->alpha);
+ if(gp->gp_uniform_time != -1)
+ glUniform1f(gp->gp_uniform_time, gr->gr_time);
+
+ if(gp->gp_uniform_resolution != -1)
+ glUniform2f(gp->gp_uniform_resolution, rj->width, rj->height);
+
if(gp->gp_uniform_blur != -1 && t0 != NULL)
glUniform3f(gp->gp_uniform_blur, rj->blur,
1.5 / t0->width, 1.5 / t0->height);
Please sign in to comment.
Something went wrong with that request. Please try again.