Skip to content

Commit

Permalink
hotfixes: Add new patch (#1286)
Browse files Browse the repository at this point in the history
* 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
Artewar67 and Tk-Glitch authored Oct 14, 2024
1 parent 031bc3e commit 6a7196a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions wine-tkg-git/wine-tkg-patches/hotfixes/GE/hotfixes
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ _apply_GE_patch() {
_GE() {
msg2 "GE patches..."
_patchname="assettocorsa-hud.patch" _patchpath="$_where/wine-tkg-patches/hotfixes/GE/game-patches" _apply_GE_patch
_patchname="support_for_DXGI_FORMAT_R8G8B8A8_UNORM.patch" _patchpath="$_where/wine-tkg-patches/hotfixes/GE/wine-hotfixes/upstream" _apply_GE_patch
#_patchname="mk11.patch" _patchpath="$_where/wine-tkg-patches/hotfixes/GE/game-patches" _apply_GE_patch
if [[ "$_plain_version" = *_8.0 ]] || [[ "$_plain_version" = *_9.0 ]]; then
_patchname="killer-instinct-winevulkan_fix-80.patch" _patchpath="$_where/wine-tkg-patches/hotfixes/GE/game-patches" _apply_GE_patch
Expand Down
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;

0 comments on commit 6a7196a

Please sign in to comment.