mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
Updated d3dx9_36-Texture_Align patchset.
This commit is contained in:
parent
84a644848c
commit
c6f7b46951
@ -1,4 +1,4 @@
|
||||
From 971091d7dac0711339d698262696d29a03b7d17f Mon Sep 17 00:00:00 2001
|
||||
From 5d633f126af17add8eaefc10c08e400616ff5fc9 Mon Sep 17 00:00:00 2001
|
||||
From: Christian Costa <titan.costa@gmail.com>
|
||||
Date: Tue, 4 Nov 2014 22:22:03 +0100
|
||||
Subject: [PATCH] d3dx9_36: Align texture dimensions to block size for
|
||||
@ -10,12 +10,12 @@ Subject: [PATCH] d3dx9_36: Align texture dimensions to block size for
|
||||
2 files changed, 13 insertions(+), 4 deletions(-)
|
||||
|
||||
diff --git a/dlls/d3dx9_36/tests/texture.c b/dlls/d3dx9_36/tests/texture.c
|
||||
index 68bbd37f8ac..3aef8037282 100644
|
||||
index fc1589d25e..93a7fcd911 100644
|
||||
--- a/dlls/d3dx9_36/tests/texture.c
|
||||
+++ b/dlls/d3dx9_36/tests/texture.c
|
||||
@@ -439,6 +439,15 @@ static void test_D3DXCheckTextureRequirements(IDirect3DDevice9 *device)
|
||||
ok(height == 4, "Got unexpected height %u.\n", height);
|
||||
ok(mipmaps == 1, "Got unexpected mipmap level count %u.\n", mipmaps);
|
||||
@@ -448,6 +448,15 @@ static void test_D3DXCheckTextureRequirements(IDirect3DDevice9 *device)
|
||||
ok(width == 4, "Got unexpected width %d.\n", width);
|
||||
ok(height == 4, "Got unexpected height %d.\n", height);
|
||||
ok(format == D3DFMT_DXT5, "Got unexpected format %u.\n", format);
|
||||
+
|
||||
+ width = 5; height = 5;
|
||||
@ -30,10 +30,10 @@ index 68bbd37f8ac..3aef8037282 100644
|
||||
else
|
||||
{
|
||||
diff --git a/dlls/d3dx9_36/texture.c b/dlls/d3dx9_36/texture.c
|
||||
index b743d5cfad0..77148db1d16 100644
|
||||
index 4ae924999e..a592b7ba1e 100644
|
||||
--- a/dlls/d3dx9_36/texture.c
|
||||
+++ b/dlls/d3dx9_36/texture.c
|
||||
@@ -333,10 +333,10 @@ HRESULT WINAPI D3DXCheckTextureRequirements(struct IDirect3DDevice9 *device, UIN
|
||||
@@ -339,10 +339,10 @@ HRESULT WINAPI D3DXCheckTextureRequirements(struct IDirect3DDevice9 *device, UIN
|
||||
|
||||
if (fmt->block_width != 1 || fmt->block_height != 1)
|
||||
{
|
||||
@ -49,5 +49,5 @@ index b743d5cfad0..77148db1d16 100644
|
||||
|
||||
if ((caps.TextureCaps & D3DPTEXTURECAPS_POW2) && (!is_pow2(w)))
|
||||
--
|
||||
2.23.0
|
||||
2.21.0
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user