- fixed: glProgramUniform is only present from GL 4.1 or a specific extension so it may not be used on systems not supporting it.

This commit is contained in:
Christoph Oelckers 2014-07-15 02:48:59 +02:00
commit fb6b4238ed
4 changed files with 30 additions and 8 deletions

View file

@ -298,9 +298,9 @@ void GLFlat::DrawSubsectors(int pass, bool istrans)
if (gl_drawinfo->ss_renderflags[sub-subsectors]&renderflags || istrans)
{
if (pass == GLPASS_ALL) lightsapplied = SetupSubsectorLights(lightsapplied, sub);
//drawcalls.Clock();
drawcalls.Clock();
glDrawArrays(GL_TRIANGLE_FAN, index, sub->numlines);
//drawcalls.Unclock();
drawcalls.Unclock();
flatvertices += sub->numlines;
flatprimitives++;
}