- fixed: The GL renderer didn't advertise its hardware rendering capabilities for some checks.

- fixed: The closed subsector check was outside the loop it was supposed to be in.


git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@660 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
Christoph Oelckers 2009-12-15 20:27:57 +00:00
parent 5de6e0a590
commit eca37ef3ec
2 changed files with 11 additions and 7 deletions

View file

@ -495,15 +495,18 @@ bool gl_LoadGLSubsectors(FileReader * f, wadlump_t * lump)
seg_t * seg = &segs[subsectors[i].firstline+j];
if (seg->linedef==NULL) seg->frontsector = seg->backsector = segs[subsectors[i].firstline].frontsector;
}
seg_t *firstseg = &segs[subsectors[i].firstline];
seg_t *lastseg = &segs[subsectors[i].firstline + subsectors[i].numlines - 1];
// The subsector must be closed. If it isn't we can't use these nodes and have to do a rebuild.
if (lastseg->v2 != firstseg->v1)
{
delete [] datab;
return false;
}
}
seg_t *firstseg = &segs[subsectors[i].firstline];
seg_t *lastseg = &segs[subsectors[i].firstline + subsectors[i].numlines - 1];
delete [] datab;
// The subsector must be closed. If it isn't we can't use these nodes and have to do a rebuild.
return (lastseg->v2 == firstseg->v1);
return true;
}
//==========================================================================

View file

@ -91,6 +91,7 @@ OpenGLFrameBuffer::OpenGLFrameBuffer(int width, int height, int bits, int refres
DoSetGamma();
needsetgamma = true;
swapped = false;
Accel2D = true;
if (gl.SetVSync!=NULL) gl.SetVSync(vid_vsync);
}