mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-22 20:11:44 +00:00
fix issue with rtlight scissoring with cl_sbar 1
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4737 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
da0473bf5e
commit
ae9324b970
1 changed files with 2 additions and 1 deletions
|
@ -3554,7 +3554,8 @@ void GLBE_Scissor(srect_t *rect)
|
|||
{
|
||||
qglScissor(
|
||||
floor(r_refdef.pxrect.x + rect->x*r_refdef.pxrect.width),
|
||||
floor(r_refdef.pxrect.y + rect->y*r_refdef.pxrect.height),// - r_refdef.pxrect.maxheight),
|
||||
// floor(r_refdef.pxrect.y + rect->y*r_refdef.pxrect.height),// - r_refdef.pxrect.maxheight),
|
||||
floor(rect->y*r_refdef.pxrect.height + (r_refdef.pxrect.maxheight-r_refdef.pxrect.y)-r_refdef.pxrect.height),
|
||||
ceil(rect->width * r_refdef.pxrect.width),
|
||||
ceil(rect->height * r_refdef.pxrect.height));
|
||||
qglEnable(GL_SCISSOR_TEST);
|
||||
|
|
Loading…
Reference in a new issue