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 <gert.wollny@collabora.com>
macos/master
Robert Wetzel 4 years ago committed by Gert Wollny
parent 53774760dd
commit a7a18b66ef
  1. 4
      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) { if (src_res->base.nr_samples < 1) {
GLenum filter = info->filter == PIPE_TEX_FILTER_NEAREST ? GLenum filter = info->filter == PIPE_TEX_FILTER_NEAREST ?
GL_NEAREST : GL_LINEAR; GL_NEAREST : GL_LINEAR;
glTexParameterf(src_res->target, GL_TEXTURE_MAG_FILTER, filter); glTexParameteri(src_res->target, GL_TEXTURE_MAG_FILTER, filter);
glTexParameterf(src_res->target, GL_TEXTURE_MIN_FILTER, filter); glTexParameteri(src_res->target, GL_TEXTURE_MIN_FILTER, filter);
} }
} }

Loading…
Cancel
Save