[PATCH 2/7] wined3d: Don't consider texture rectangles for buffers.

Matteo Bruni mbruni at codeweavers.com
Mon May 31 14:12:52 CDT 2021


Signed-off-by: Matteo Bruni <mbruni at codeweavers.com>
---
 dlls/wined3d/resource.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
index 58e3e5c77fd..54cbd514e27 100644
--- a/dlls/wined3d/resource.c
+++ b/dlls/wined3d/resource.c
@@ -141,15 +141,15 @@ HRESULT resource_init(struct wined3d_resource *resource, struct wined3d_device *
                 WARN("Format %s cannot be used for texturing.\n", debug_d3dformat(format->id));
                 continue;
             }
-        }
-        if (((width & (width - 1)) || (height & (height - 1)))
+            if (((width & (width - 1)) || (height & (height - 1)))
                 && !d3d_info->texture_npot
                 && !gl_info->supported[WINED3D_GL_NORMALIZED_TEXRECT]
                 && gl_type == WINED3D_GL_RES_TYPE_TEX_2D)
-        {
-            TRACE("Skipping 2D texture type to try texture rectangle.\n");
-            tex_2d_ok = TRUE;
-            continue;
+            {
+                TRACE("Skipping 2D texture type to try texture rectangle.\n");
+                tex_2d_ok = TRUE;
+                continue;
+            }
         }
         break;
     }
-- 
2.26.3




More information about the wine-devel mailing list