Index: /trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/texture.c
===================================================================
--- /trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/texture.c	(revision 42254)
+++ /trunk/src/VBox/Additions/WINNT/Graphics/Wine/wined3d/texture.c	(revision 42255)
@@ -690,4 +690,5 @@
     if (VBOXSHRC_IS_SHARED(texture))
     {
+        struct wined3d_context * context;
         Assert(shared_handle);
         for (i = 0; i < texture->baseTexture.levels; ++i)
@@ -723,23 +724,18 @@
 #endif
 
-        if (!VBOXSHRC_IS_SHARED(texture))
-        {
-            struct wined3d_context * context;
-
-            Assert(!device->isInDraw);
-
-            /* flush to ensure the texture is allocated/referenced before it is used/released by another
-             * process opening/creating it */
-            context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD);
-            if (context->valid)
-            {
-                wglFlush();
-            }
-            else
-            {
-                ERR("invalid context!");
-            }
-            context_release(context);
-        }
+        Assert(!device->isInDraw);
+
+        /* flush to ensure the texture is allocated/referenced before it is used/released by another
+         * process opening/creating it */
+        context = context_acquire(device, NULL, CTXUSAGE_RESOURCELOAD);
+        if (context->valid)
+        {
+            wglFlush();
+        }
+        else
+        {
+            ERR("invalid context!");
+        }
+        context_release(context);
     }
     else
