[PATCH 4/8] wined3d: Add support for cube shadow samplers.

Józef Kucia jkucia at codeweavers.com
Thu Apr 6 04:47:49 CDT 2017


Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/wined3d/glsl_shader.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/dlls/wined3d/glsl_shader.c b/dlls/wined3d/glsl_shader.c
index 3a84a43..b112f14 100644
--- a/dlls/wined3d/glsl_shader.c
+++ b/dlls/wined3d/glsl_shader.c
@@ -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:
-- 
2.10.2




More information about the wine-patches mailing list