mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Fixes the black lines bug.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2927 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
794ac6d3d3
commit
7b8e20d0ae
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue