From ba6d1e387b0e5a3aedf120fb2c5fbb7d94e12cc9 Mon Sep 17 00:00:00 2001 From: Gert Wollny Date: Fri, 27 Nov 2020 16:27:51 +0100 Subject: [PATCH] vrend: emit alpha_ref value as float Closes #186 Signed-off-by: Gert Wollny Reviewed-by: Gurchetan Singh --- src/vrend_renderer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_renderer.c b/src/vrend_renderer.c index 5ce0fce..35eed49 100644 --- a/src/vrend_renderer.c +++ b/src/vrend_renderer.c @@ -4307,7 +4307,7 @@ static void vrend_draw_bind_objects(struct vrend_context *ctx, bool new_program) } if (vrend_state.use_core_profile && ctx->sub->prog->fs_alpha_ref_val_loc != -1) { - glUniform1i(ctx->sub->prog->fs_alpha_ref_val_loc, ctx->sub->dsa_state.alpha.ref_value); + glUniform1f(ctx->sub->prog->fs_alpha_ref_val_loc, ctx->sub->dsa_state.alpha.ref_value); } }