Build 2577
SVN-
General
Fix the MSVC build, common.c was only added to the GNU Makefile.
SVN handles and Git names are merged into one person.
Fix the MSVC build, common.c was only added to the GNU Makefile.
fix unused variable permanentlock
cull sprite lights after computing sprite geometry
This was broken ever since updatesprite() had been forked off drawsprite() and would cause static lights to never hit static sprites until one or the other changed, after which the light would always get culled against outdated sprite geometry.
fix animations that loop to frame 0
With VBOs enabled, the virtual pointer to the geometry of frame 0 of a model is always NULL. This was confusing the polymer code responsible for deciding whether to enable smooth animations or not, which meant that any animation that would loop to frame 0 would do it as if animation interpolation was disabled, which looks very choppy.
support for creating a debugging context in winlayer
This also fixes a warning when building for Windows.
fix stupid typo that broke r2057
fix horizontal spotlight SEs constantly getting invalidated
Polymer has a hack that snaps horiz values of spotlights between 90 and 110 to 90 and 110 to avoid triggering aliasing artifacts with perfectly horizontal spotlights. Propagate that change all the way to the spotlight SE sprite so that the code won't think that the horiz is always different from the light and mark it invalid each frame.
Fix upside-down projective textures
We need to Y-invert the projection texcoords when sampling from the lightmap.
fix leading whitespace in polymer_drawmdsprite
fix leak of GL query objects
In cases where performing occlusion queries for multiple red walls leading to the same sector, we would sometimes leak a number of query objects. This was apparently harmless on NVIDIA drivers, but would leak tons of memory on ATI.
fix sector masks translucency.
The code was using the Polymer-cached version of the sector cstat to determine the translucency of its diffuse material, meaning it would never get it right on the first try; that's what you get for having completely different variables named 's' and 'sec'.
fix external view.
Some of the ROR code was operating under the assumption that drawasks always correspond to one call of polymer_displarooms(), but that's not necessarily the case; external view draws all sectors from the top polymer_drawrooms(), which was causing crashes. Just ignore the sector mask queues in external view mode, we already don't draw masked walls.
Fix colored fog in Polymer.
This fixes a ridiculous interaction problem between non-black fog and additive lighting passes. Plagman is stupid.
Fix two warnings I introduced a while back.
Fixes for building on OpenBSD. Doesn't break Linux, pending Win32 synthesis
results.
Fix the bug where Mapster32 tile selection would display the detail map of a
tile.
Blender ASE: fix animation import.
Fix the build with USE_OPENGL=0.
Fix warnings when building with POLYMER=0.
Fix shade updating for swapped bottomwalls.