mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 11:45:45 +03:00
dxvk_1: fix build compatibility with GCC 14 (#360918)
This commit is contained in:
commit
9e09ce2d47
2 changed files with 16 additions and 0 deletions
14
pkgs/by-name/dx/dxvk_1/gcc14-compat.patch
Normal file
14
pkgs/by-name/dx/dxvk_1/gcc14-compat.patch
Normal file
|
@ -0,0 +1,14 @@
|
|||
diff --git a/src/d3d10/d3d10_interfaces.h b/src/d3d10/d3d10_interfaces.h
|
||||
index aa028ab575..99f1dc4567 100644
|
||||
--- a/src/d3d10/d3d10_interfaces.h
|
||||
+++ b/src/d3d10/d3d10_interfaces.h
|
||||
@@ -1,9 +1,3 @@
|
||||
#pragma once
|
||||
|
||||
#include "d3d10_include.h"
|
||||
-
|
||||
-#ifdef _MSC_VER
|
||||
-struct __declspec(uuid("0803425a-57f5-4dd6-9465-a87570834a08")) ID3D10StateBlock;
|
||||
-#else
|
||||
-__CRT_UUID_DECL(ID3D10StateBlock, 0x0803425a,0x57f5,0x4dd6,0x94,0x65,0xa8,0x75,0x70,0x83,0x4a,0x08);
|
||||
-#endif
|
|
@ -29,6 +29,8 @@ stdenv.mkDerivation (finalAttrs: {
|
|||
url = "https://github.com/doitsujin/dxvk/commit/1a5afc77b1859e6c7e31b55e11ece899e3b5295a.patch";
|
||||
hash = "sha256-tTAsQOMAazgH/6laLNTuG2lki257VUR9EBivnD4vCuY=";
|
||||
})
|
||||
# Fixes errors building with GCC 14.
|
||||
./gcc14-compat.patch
|
||||
]
|
||||
++ lib.optionals enableMoltenVKCompat [
|
||||
# Patch DXVK to work with MoltenVK even though it doesn’t support some required features.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue