summaryrefslogtreecommitdiff
path: root/games-fps/prboom-plus/files/prboom-plus-2.6.1-Guard-OpenGL-call-in-D_Display-with-GL_DOOM.patch
blob: 78a0285703f4024f4190f51903255b6b1f784688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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