git: b0293949bef4 - main - games/veloren-weekly: add workaround for x11/nvidia-driver

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Thu, 30 May 2024 00:14:53 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b0293949bef41db192a1c6395270037312248000

commit b0293949bef41db192a1c6395270037312248000
Author:     Sean Farley <scf@FreeBSD.org>
AuthorDate: 2024-05-27 18:37:03 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2024-05-30 00:13:45 +0000

    games/veloren-weekly: add workaround for x11/nvidia-driver
    
    ERROR veloren_voxygen::render::renderer: Validation Error
    
    Caused by:
    In Queue::write_texture
    Not enough memory left.
    
    PR:             279355
---
 games/veloren-weekly/Makefile                |  1 +
 games/veloren-weekly/files/patch-wgpu-nvidia | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile
index a626be2e5a7b..122c13c53adc 100644
--- a/games/veloren-weekly/Makefile
+++ b/games/veloren-weekly/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	veloren
 PORTVERSION=	s20240523
+PORTREVISION=	1
 CATEGORIES=	games wayland
 PKGNAMESUFFIX=	-weekly
 
diff --git a/games/veloren-weekly/files/patch-wgpu-nvidia b/games/veloren-weekly/files/patch-wgpu-nvidia
new file mode 100644
index 000000000000..968ab7b7c858
--- /dev/null
+++ b/games/veloren-weekly/files/patch-wgpu-nvidia
@@ -0,0 +1,15 @@
+https://gitlab.com/veloren/veloren/-/issues/1975
+
+--- ../wgpu-0.18-with-fixes-for-veloren-v1/wgpu/src/backend/direct.rs.orig	2024-02-09 04:29:29 UTC
++++ ../wgpu-0.18-with-fixes-for-veloren-v1/wgpu/src/backend/direct.rs
+@@ -2279,9 +2279,7 @@ impl crate::Context for Context {
+             &size
+         )) {
+             Ok(()) => (),
+-            Err(err) => {
+-                self.handle_error_nolabel(&queue_data.error_sink, err, "Queue::write_texture")
+-            }
++            Err(_err) => ()
+         }
+     }
+