git: 65123e6c5777 - main - games/0ad: Update to 0.27.1

From: Guido Falsi <madpilot_at_FreeBSD.org>
Date: Fri, 18 Jul 2025 07:46:56 UTC
The branch main has been updated by madpilot:

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

commit 65123e6c57771e84a3a21bfd4060e4b537b39837
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2025-07-18 07:46:19 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2025-07-18 07:46:19 +0000

    games/0ad: Update to 0.27.1
    
    PR:             288275
---
 games/0ad/Makefile                                 |  3 +-
 games/0ad/distinfo                                 | 10 ++---
 games/0ad/files/patch-GL-OOB-fix                   | 48 ----------------------
 .../patch-build_workspaces_update-workspaces.sh    | 13 ------
 4 files changed, 6 insertions(+), 68 deletions(-)

diff --git a/games/0ad/Makefile b/games/0ad/Makefile
index d46fdf00ecc5..8eb1d8a53731 100644
--- a/games/0ad/Makefile
+++ b/games/0ad/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	0ad
-DISTVERSION=	0.27.0
-PORTREVISION=	11
+DISTVERSION=	0.27.1
 CATEGORIES=	games
 MASTER_SITES=	https://releases.wildfiregames.com/
 DISTFILES=	${PORTNAME}-${DISTVERSION}-unix-build.tar.xz \
diff --git a/games/0ad/distinfo b/games/0ad/distinfo
index ae481ae4d049..9c0617992796 100644
--- a/games/0ad/distinfo
+++ b/games/0ad/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1738253090
-SHA256 (0ad-0.27.0-unix-build.tar.xz) = aa94857009750d5f61dbf016bc150e3bdcbdb3acdfc8ad20b73ab8b43e9a1ba6
-SIZE (0ad-0.27.0-unix-build.tar.xz) = 152170976
-SHA256 (0ad-0.27.0-unix-data.tar.xz) = 3e48855ab8e1ef81270338462c8270b015213f14f5e054aab92ad74d5ea59dea
-SIZE (0ad-0.27.0-unix-data.tar.xz) = 1367701984
+TIMESTAMP = 1752758686
+SHA256 (0ad-0.27.1-unix-build.tar.xz) = a0a5355eeb5968d24f283770736150d974dafecba07754d4662707dc17016bfb
+SIZE (0ad-0.27.1-unix-build.tar.xz) = 153554512
+SHA256 (0ad-0.27.1-unix-data.tar.xz) = 837e2d6ddf138b025fc02017245d7581a4bb84fd94b42c0e605d321b7017a998
+SIZE (0ad-0.27.1-unix-data.tar.xz) = 1367955136
diff --git a/games/0ad/files/patch-GL-OOB-fix b/games/0ad/files/patch-GL-OOB-fix
deleted file mode 100644
index 1f5548cc6684..000000000000
--- a/games/0ad/files/patch-GL-OOB-fix
+++ /dev/null
@@ -1,48 +0,0 @@
-From a1f7568df9814d0dc399fc1e4f1c122da24a8f05 Mon Sep 17 00:00:00 2001
-From: Vladislav Belov <vladislavbelovdev@gmail.com>
-Date: Fri, 7 Feb 2025 22:24:00 +0100
-Subject: [PATCH] Fixes out of bounds during GL buffer binding.
-
----
- source/renderer/backend/gl/DeviceCommandContext.cpp | 4 ++++
- source/renderer/backend/gl/DeviceCommandContext.h   | 2 +-
- 2 files changed, 5 insertions(+), 1 deletion(-)
-
-diff --git a/source/renderer/backend/gl/DeviceCommandContext.cpp b/source/renderer/backend/gl/DeviceCommandContext.cpp
-index dacdd4377b..87bc323305 100644
---- source/renderer/backend/gl/DeviceCommandContext.cpp
-+++ source/renderer/backend/gl/DeviceCommandContext.cpp
-@@ -246,6 +246,9 @@ CDeviceCommandContext::CDeviceCommandContext(CDevice* device)
- 	for (size_t index = 0; index < m_BoundBuffers.size(); ++index)
- 	{
- 		const CBuffer::Type type = static_cast<CBuffer::Type>(index);
-+		// Currently we don't support upload buffers for GL.
-+		if (type == CBuffer::Type::UPLOAD)
-+			continue;
- 		const GLenum target = BufferTypeToGLTarget(type);
- 		const GLuint handle = 0;
- 		m_BoundBuffers[index].first = target;
-@@ -1456,6 +1459,7 @@ CDeviceCommandContext::ScopedBufferBind::ScopedBufferBind(
- {
- 	ENSURE(buffer);
- 	m_CacheIndex = static_cast<size_t>(buffer->GetType());
-+	ENSURE(m_CacheIndex < m_DeviceCommandContext->m_BoundBuffers.size());
- 	const GLenum target = BufferTypeToGLTarget(buffer->GetType());
- 	const GLuint handle = buffer->GetHandle();
- 	if (m_DeviceCommandContext->m_BoundBuffers[m_CacheIndex].first == target &&
-diff --git a/source/renderer/backend/gl/DeviceCommandContext.h b/source/renderer/backend/gl/DeviceCommandContext.h
-index 5f1a251007..3d23d89c06 100644
---- source/renderer/backend/gl/DeviceCommandContext.h
-+++ source/renderer/backend/gl/DeviceCommandContext.h
-@@ -221,7 +221,7 @@ private:
- 	};
- 
- 	using BoundBuffer = std::pair<GLenum, GLuint>;
--	std::array<BoundBuffer, 2> m_BoundBuffers;
-+	std::array<BoundBuffer, 4> m_BoundBuffers;
- 	class ScopedBufferBind
- 	{
- 	public:
--- 
-2.43.5
-
diff --git a/games/0ad/files/patch-build_workspaces_update-workspaces.sh b/games/0ad/files/patch-build_workspaces_update-workspaces.sh
deleted file mode 100644
index 7768c92a886a..000000000000
--- a/games/0ad/files/patch-build_workspaces_update-workspaces.sh
+++ /dev/null
@@ -1,13 +0,0 @@
---- build/workspaces/update-workspaces.sh.orig	2025-01-28 19:57:28 UTC
-+++ build/workspaces/update-workspaces.sh
-@@ -1,10 +1,5 @@
- #!/bin/sh
- 
--if [ "$(id -u)" = "0" ]; then
--	echo "Running as root will mess up file permissions. Aborting ..." 1>&2
--	exit 1
--fi
--
- die()
- {
- 	echo ERROR: "$*"