From 48ad01f2ff0cb1551587cb25552093b9dfb51c5c Mon Sep 17 00:00:00 2001 From: Simon Robertshaw Date: Tue, 25 Oct 2011 13:42:17 +0100 Subject: [PATCH] Fix for odd alpha blending partsTex --- src/graphics.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/graphics.c b/src/graphics.c index afeb79267..f1f9f6e3f 100644 --- a/src/graphics.c +++ b/src/graphics.c @@ -1561,11 +1561,21 @@ void draw_other(pixel *vid) // EMP effect if (g>255) g=255; if (b>255) g=255; if (a>255) a=255; +#ifdef OGLR + glBegin(GL_QUADS); + glColor4i(r, g, b, a); + glVertex2f(0, 0); + glVertex2f(XRES, 0); + glVertex2f(XRES, YRES); + glVertex2f(0, YRES); + glEnd(); +#else for (j=0; j