[PATCH 02/10] wined3d: Get rid of the "d3d_initialized" check in context_resource_released().

Henri Verbeet hverbeet at codeweavers.com
Wed Jun 3 06:10:04 CDT 2020


When this was introduced in commit 401e99b0c074af848379b2602df37fb1e6c7536b,
it protected against calling the equivalent of context_acquire() on the
equivalent of the no3d adapter. Commit
94d33d3e861d8e01b4edcb940e8ab1aa98359520 removed the call in question.

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
---
 dlls/wined3d/context.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 7959199e1f4..3a263e1f6bd 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -36,9 +36,6 @@ void context_resource_released(const struct wined3d_device *device, struct wined
 {
     unsigned int i;
 
-    if (!device->d3d_initialized)
-        return;
-
     for (i = 0; i < device->context_count; ++i)
     {
         struct wined3d_context *context = device->contexts[i];
-- 
2.20.1




More information about the wine-devel mailing list