From a7a18b66efc8276ee93e8542e34f6c2ac0a0bf7f Mon Sep 17 00:00:00 2001 From: Robert Wetzel Date: Tue, 13 Apr 2021 10:43:17 +0200 Subject: [PATCH] vrend: Replace glTexParameterf() with glTexParameteri() for GL_TEXTURE_MIN/MAG_FILTER. GL_TEXTURE_MIN/MAG_FILTER expects an enum value, to be set with glTexParameteri() (integer value) instead of glTexParameterf() (float value). Closes #212 Reviewed-by: Gert Wollny --- src/vrend_blitter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vrend_blitter.c b/src/vrend_blitter.c index 482dceb..a96b6bc 100644 --- a/src/vrend_blitter.c +++ b/src/vrend_blitter.c @@ -672,8 +672,8 @@ static void vrend_set_tex_param(struct vrend_resource *src_res, if (src_res->base.nr_samples < 1) { GLenum filter = info->filter == PIPE_TEX_FILTER_NEAREST ? GL_NEAREST : GL_LINEAR; - glTexParameterf(src_res->target, GL_TEXTURE_MAG_FILTER, filter); - glTexParameterf(src_res->target, GL_TEXTURE_MIN_FILTER, filter); + glTexParameteri(src_res->target, GL_TEXTURE_MAG_FILTER, filter); + glTexParameteri(src_res->target, GL_TEXTURE_MIN_FILTER, filter); } }