- removed debug code.

- fixed: planes that are created by splitting translucent 3D-floors may never be rendered.
This commit is contained in:
Christoph Oelckers 2014-10-23 17:35:58 +02:00
parent f907de15b0
commit bca47bb9bc
2 changed files with 2 additions and 7 deletions

View file

@ -173,13 +173,6 @@ int FLightBuffer::UploadLights(FDynLightData &data)
if (mBufferPointer == NULL) return -1;
copyptr = mBufferPointer + mIndex * 4;
static unsigned int lastindex = 0;
if (mIndex > lastindex)
{
Printf("Light index: %d, size: %d\n", mIndex, totalsize);
lastindex = mIndex;
}
float parmcnt[] = { 0, float(size0), float(size0 + size1), float(size0 + size1 + size2) };
memcpy(&copyptr[0], parmcnt, 4 * sizeof(float));

View file

@ -639,6 +639,7 @@ void GLFlat::ProcessSector(sector_t * frontsector)
if ((rover->flags&(FF_EXISTS|FF_RENDERPLANES|FF_THISINSIDE))==(FF_EXISTS|FF_RENDERPLANES))
{
if (rover->flags&FF_FOG && gl_fixedcolormap) continue;
if (rover->top.copied) continue; // this plane has been dynamically created and does not produce any rendered surface.
if (rover->flags&(FF_INVERTPLANES|FF_BOTHPLANES))
{
fixed_t ff_top=rover->top.plane->ZatPoint(CenterSpot(sector));
@ -679,6 +680,7 @@ void GLFlat::ProcessSector(sector_t * frontsector)
if ((rover->flags&(FF_EXISTS|FF_RENDERPLANES|FF_THISINSIDE))==(FF_EXISTS|FF_RENDERPLANES))
{
if (rover->flags&FF_FOG && gl_fixedcolormap) continue;
if (rover->bottom.copied) continue; // this plane has been dynamically created and does not produce any rendered surface.
if (rover->flags&(FF_INVERTPLANES|FF_BOTHPLANES))
{
fixed_t ff_bottom=rover->bottom.plane->ZatPoint(CenterSpot(sector));