From 7b8e20d0ae26b5a26da37b780f96d57463fcb81b Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 16 Feb 2008 15:57:46 +0000 Subject: [PATCH] Fixes the black lines bug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2927 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/gl/gl_bloom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_bloom.c b/engine/gl/gl_bloom.c index 6bd2d0964..879f8588e 100644 --- a/engine/gl/gl_bloom.c +++ b/engine/gl/gl_bloom.c @@ -585,11 +585,11 @@ void R_BloomBlend (void)//refdef_t *fd, meshlist_t *meshlist ) screenText_tcw = ((float)curView_width / (float)screen_texture_width); screenText_tch = ((float)curView_height / (float)screen_texture_height); if( scr_vrect.height > scr_vrect.width ) { - sampleText_tcw = ((float)scr_vrect.width / (float)scr_vrect.height); + sampleText_tcw = ((float)(scr_vrect.width+0.5) / (float)scr_vrect.height); sampleText_tch = 1.0f; } else { sampleText_tcw = 1.0f; - sampleText_tch = ((float)scr_vrect.height / (float)scr_vrect.width); + sampleText_tch = ((float)(scr_vrect.height+0.5) / (float)scr_vrect.width); } sample_width = BLOOM_SIZE * sampleText_tcw; sample_height = BLOOM_SIZE * sampleText_tch;