wined3d: Set default sampler minification filter to GL_NEAREST.
commitbf4e1c442d397ddc3b5a6de2634104de64f9d08b
authorJózef Kucia <jkucia@codeweavers.com>
Mon, 5 Dec 2016 11:04:25 +0000 (5 12:04 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 5 Dec 2016 15:11:14 +0000 (5 16:11 +0100)
treef07ecfe85782e264c385d65e494c7175698be66d
parent6579bd619faecd02773f36718f82a1a9df26b181
wined3d: Set default sampler minification filter to GL_NEAREST.

This seems to be required for reading stencil values. The GL spec says
"When sampling the stencil index only NEAREST filtering is supported.".
The GL spec is inconsistent about this, but Mesa refuses to sample
stencil index values with the GL_NEAREST_MIPMAP_NEAREST filter.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/wined3d/device.c