forked from pool/vkquake
Accepting request 834281 from games
OBS-URL: https://build.opensuse.org/request/show/834281 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vkquake?expand=0&rev=5
This commit is contained in:
commit
113ed84703
25
0001-Remove-use-of-VK_DYNAMIC_STATE_RANGE_SIZE.patch
Normal file
25
0001-Remove-use-of-VK_DYNAMIC_STATE_RANGE_SIZE.patch
Normal file
@ -0,0 +1,25 @@
|
||||
From 029d2c53dc72a9995e0cec974d8ca03fc8352963 Mon Sep 17 00:00:00 2001
|
||||
From: Axel Gneiting <axelgneiting@gmail.com>
|
||||
Date: Sun, 17 May 2020 22:38:00 -0500
|
||||
Subject: [PATCH] Remove use of VK_DYNAMIC_STATE_RANGE_SIZE
|
||||
|
||||
---
|
||||
Quake/gl_rmisc.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Quake/gl_rmisc.c b/Quake/gl_rmisc.c
|
||||
index ae66f3a..b80d6ae 100644
|
||||
--- a/Quake/gl_rmisc.c
|
||||
+++ b/Quake/gl_rmisc.c
|
||||
@@ -1426,7 +1426,7 @@ void R_CreatePipelines()
|
||||
VkPipelineDynamicStateCreateInfo dynamic_state_create_info;
|
||||
memset(&dynamic_state_create_info, 0, sizeof(dynamic_state_create_info));
|
||||
dynamic_state_create_info.sType = VK_STRUCTURE_TYPE_PIPELINE_DYNAMIC_STATE_CREATE_INFO;
|
||||
- VkDynamicState dynamic_states[VK_DYNAMIC_STATE_RANGE_SIZE];
|
||||
+ VkDynamicState dynamic_states[3];
|
||||
dynamic_state_create_info.pDynamicStates = dynamic_states;
|
||||
|
||||
VkPipelineShaderStageCreateInfo shader_stages[2];
|
||||
--
|
||||
2.28.0
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Sep 13 17:03:57 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
- Add upstream patch to fix the factory build:
|
||||
* 0001-Remove-use-of-VK_DYNAMIC_STATE_RANGE_SIZE.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 27 23:05:55 UTC 2020 - Christophe Giboudeaux <christophe@krop.fr>
|
||||
|
||||
|
@ -28,6 +28,8 @@ Source: https://github.com/Novum/vkQuake/archive/%{version}/vkQuake-%{ve
|
||||
Source99: %{name}.changes
|
||||
Source100: appdata.xml
|
||||
Source101: %{name}.desktop
|
||||
# PATCH-FIX-UPSTREAM
|
||||
Patch0: 0001-Remove-use-of-VK_DYNAMIC_STATE_RANGE_SIZE.patch
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: vulkan-devel
|
||||
BuildRequires: pkgconfig(flac)
|
||||
@ -42,7 +44,7 @@ vkQuake is a Quake 1 port using Vulkan instead of OpenGL for rendering. It is ba
|
||||
Game data must be placed in ~/.vkquake/id1 .
|
||||
|
||||
%prep
|
||||
%setup -q -n vkQuake-%{version}
|
||||
%autosetup -p1 -n vkQuake-%{version}
|
||||
|
||||
%if 0%{?sle_version} < 150200
|
||||
sed -i 's#vulkan_core.h#vulkan.h#' Quake/quakedef.h
|
||||
|
Loading…
Reference in New Issue
Block a user