wined3d: Add support for cube shadow samplers.

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>
This commit is contained in:
Józef Kucia 2017-04-06 11:47:49 +02:00 committed by Alexandre Julliard
parent ecd64a7246
commit 90bf175f4d
1 changed files with 6 additions and 4 deletions

View File

@ -2396,8 +2396,9 @@ static void shader_generate_glsl_declarations(const struct wined3d_context *cont
case WINED3D_SHADER_RESOURCE_TEXTURE_CUBE:
if (shadow_sampler)
FIXME("Unsupported Cube shadow sampler.\n");
sampler_type = "samplerCube";
sampler_type = "samplerCubeShadow";
else
sampler_type = "samplerCube";
break;
case WINED3D_SHADER_RESOURCE_TEXTURE_2DARRAY:
@ -2409,8 +2410,9 @@ static void shader_generate_glsl_declarations(const struct wined3d_context *cont
case WINED3D_SHADER_RESOURCE_TEXTURE_CUBEARRAY:
if (shadow_sampler)
FIXME("Unsupported Cube array shadow sampler.\n");
sampler_type = "samplerCubeArray";
sampler_type = "samplerCubeArrayShadow";
else
sampler_type = "samplerCubeArray";
break;
default: