From eca393ffd3c05279150a29e104953c0234a59736 Mon Sep 17 00:00:00 2001 From: William Breathitt Gray 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