You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/games-fps/prboom-plus/files/prboom-plus-2.6.1-Guard-Ope...

29 lines
739 B

From eca393ffd3c05279150a29e104953c0234a59736 Mon Sep 17 00:00:00 2001
From: William Breathitt Gray <vilhelm.gray@gmail.com>
Date: Fri, 27 Aug 2021 12:06:45 +0900
Subject: [PATCH] Guard OpenGL call in D_Display() with GL_DOOM
Fixes: https://github.com/coelckers/prboom-plus/issues/382
---
prboom2/src/d_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/prboom2/src/d_main.c b/prboom2/src/d_main.c
index 16a9efc2..4fe97465 100644
--- a/prboom2/src/d_main.c
+++ b/prboom2/src/d_main.c
@@ -395,8 +395,10 @@ void D_Display (fixed_t frac)
R_DrawViewBorder();
HU_Drawer();
+#ifdef GL_DOOM
if (V_GetMode() == VID_MODEGL)
gld_ProcessExtraAlpha();
+#endif
}
isborderstate = isborder;
--
2.33.0