-
-
Notifications
You must be signed in to change notification settings - Fork 166
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* hotfixes: Add patch "Add DXGI_FORMAT_R8G8B8A8_UNORM support on d2d_wic_render_target_init" This patch from proton-ge Signed-off-by: Kirill Artemev <[email protected]> * Minor fixups --------- Signed-off-by: Kirill Artemev <[email protected]> Co-authored-by: Tk-Glitch <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...g-patches/hotfixes/GE/wine-hotfixes/upstream/support_for_DXGI_FORMAT_R8G8B8A8_UNORM.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/dlls/d2d1/wic_render_target.c b/dlls/d2d1/wic_render_target.c | ||
index 858c187e3bc..77d2adb705e 100644 | ||
--- a/dlls/d2d1/wic_render_target.c | ||
+++ b/dlls/d2d1/wic_render_target.c | ||
@@ -197,6 +197,7 @@ HRESULT d2d_wic_render_target_init(struct d2d_wic_render_target *render_target, | ||
switch (texture_desc.Format) | ||
{ | ||
case DXGI_FORMAT_B8G8R8A8_UNORM: | ||
+ case DXGI_FORMAT_R8G8B8A8_UNORM: | ||
render_target->bpp = 4; | ||
break; | ||
|