From ae9324b970a3304e36248190e789b4c5e5fe9096 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 30 Aug 2014 09:58:51 +0000 Subject: [PATCH] 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 --- engine/gl/gl_backend.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/engine/gl/gl_backend.c b/engine/gl/gl_backend.c index a31e1b278..ca4a178dd 100644 --- a/engine/gl/gl_backend.c +++ b/engine/gl/gl_backend.c @@ -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);