Fix mirrors with screen resizing.

git-svn-id: https://svn.eduke32.com/eduke32@1505 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
plagman 2009-09-30 01:00:49 +00:00
parent d1e22bae52
commit 10913b51f2

View file

@ -1467,7 +1467,7 @@ static void polymer_displayrooms(int16_t dacursectnum)
{
bglBindFramebufferEXT(GL_FRAMEBUFFER_EXT, prrts[0].fbo);
bglPushAttrib(GL_VIEWPORT_BIT);
bglViewport(0, 0, xdim, ydim);
bglViewport(windowx1, yres-(windowy2+1),windowx2-windowx1+1, windowy2-windowy1+1);
bglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);