=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: wined3d: Get rid of redundant WARN() from context_load_shader_resources().

Alexandre Julliard julliard at winehq.org
Wed Mar 15 16:41:51 CDT 2017


Module: wine
Branch: master
Commit: 470767ef4aa227e905d3f3835ec17bce79d96063
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=470767ef4aa227e905d3f3835ec17bce79d96063

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Wed Mar 15 12:00:05 2017 +0100

wined3d: Get rid of redundant WARN() from context_load_shader_resources().

The context_bind_shader_resources() function prints the same warning
message.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/wined3d/context.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index f625329..8029de0 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -3380,10 +3380,7 @@ static void context_load_shader_resources(struct wined3d_context *context, const
             entry = &shader->reg_maps.sampler_map.entries[j];
 
             if (!(view = state->shader_resource_view[i][entry->resource_idx]))
-            {
-                WARN("No resource view bound at index %u, %u.\n", i, entry->resource_idx);
                 continue;
-            }
 
             if (view->resource->type == WINED3D_RTYPE_BUFFER)
                 wined3d_buffer_load(buffer_from_resource(view->resource), context, state);




More information about the wine-cvs mailing list