forked from pool/vkquake
Accepting request 1085160 from games
OBS-URL: https://build.opensuse.org/request/show/1085160 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/vkquake?expand=0&rev=18
This commit is contained in:
36
fix_maybe-uninitialized_error.patch
Normal file
36
fix_maybe-uninitialized_error.patch
Normal file
@@ -0,0 +1,36 @@
|
||||
From 19d76588037977f59506c18aa3d307f8f5124d0f Mon Sep 17 00:00:00 2001
|
||||
From: Axel Gneiting <axelgneiting@gmail.com>
|
||||
Date: Sat, 29 Apr 2023 17:59:07 -0700
|
||||
Subject: [PATCH] Fix warnings with GCC 13
|
||||
|
||||
Those were not actual bugs
|
||||
---
|
||||
Quake/gl_heap.c | 2 +-
|
||||
Quake/sv_phys.c | 1 +
|
||||
2 files changed, 2 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/Quake/gl_heap.c b/Quake/gl_heap.c
|
||||
index d2a0ccfa2..db55ad0b0 100644
|
||||
--- a/Quake/gl_heap.c
|
||||
+++ b/Quake/gl_heap.c
|
||||
@@ -645,7 +645,7 @@ glheapallocation_t *GL_HeapAllocate (glheap_t *heap, VkDeviceSize size, VkDevice
|
||||
|
||||
if (size < heap->segment_size)
|
||||
{
|
||||
- allocinfo_t alloc_info;
|
||||
+ ZEROED_STRUCT (allocinfo_t, alloc_info);
|
||||
const VkDeviceSize size_alignment_max = q_max (size, alignment);
|
||||
alloc_info.is_small_alloc = size_alignment_max <= heap->page_size / 2;
|
||||
if (alloc_info.is_small_alloc)
|
||||
diff --git a/Quake/sv_phys.c b/Quake/sv_phys.c
|
||||
index 3f57f53e2..f214aea22 100644
|
||||
--- a/Quake/sv_phys.c
|
||||
+++ b/Quake/sv_phys.c
|
||||
@@ -276,6 +276,7 @@ int SV_FlyMove (edict_t *ent, float time, trace_t *steptrace)
|
||||
blocked = 0;
|
||||
VectorCopy (ent->v.velocity, original_velocity);
|
||||
VectorCopy (ent->v.velocity, primal_velocity);
|
||||
+ VectorCopy (ent->v.velocity, new_velocity);
|
||||
numplanes = 0;
|
||||
|
||||
time_left = time;
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:073c8f0f734d0c2404e3ad77e9c8be56048b7569b147a1a0e5b292bf964a9a60
|
||||
size 47516157
|
3
vkQuake-1.30.1.tar.gz
Normal file
3
vkQuake-1.30.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b88d3dfc869d89820766e2dd18bdadb9681adfc4c9d05e09cbbebcc17ef1d150
|
||||
size 47516278
|
@@ -1,3 +1,15 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri May 5 15:53:59 UTC 2023 - Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
|
||||
|
||||
- Add fix_maybe-uninitialized_error.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 18 19:13:47 UTC 2023 - Martin Hauke <mardnh@gmx.de>
|
||||
|
||||
- Update to version 1.33.1
|
||||
* Add a workaround for AMD driver bug causing corrupted sky and
|
||||
a minor Vulkan correctness fix.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 14 12:33:56 UTC 2023 - Michael Pujos <pujos.michael@gmail.com>
|
||||
|
||||
|
@@ -18,7 +18,7 @@
|
||||
|
||||
|
||||
Name: vkquake
|
||||
Version: 1.30.0
|
||||
Version: 1.30.1
|
||||
Release: 0
|
||||
Summary: Quake 1 port using Vulkan instead of OpenGL for rendering
|
||||
License: GPL-2.0-or-later
|
||||
@@ -28,6 +28,8 @@ Source: https://github.com/Novum/vkQuake/archive/refs/tags/%{version}.ta
|
||||
Source99: %{name}.changes
|
||||
Source100: appdata.xml
|
||||
Source101: %{name}.desktop
|
||||
# PATCH-FIX-UPSTREAM https://github.com/Novum/vkQuake/issues/688
|
||||
Patch1: fix_maybe-uninitialized_error.patch
|
||||
BuildRequires: glslang-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: vulkan-devel >= 1.2.162
|
||||
@@ -43,7 +45,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
|
||||
%autosetup -n vkQuake-%{version}
|
||||
%autosetup -n vkQuake-%{version} -p1
|
||||
|
||||
%if 0%{?sle_version} < 150200
|
||||
sed -i 's#vulkan_core.h#vulkan.h#' Quake/quakedef.h
|
||||
|
Reference in New Issue
Block a user