]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
added hacky workaround for nvidia GLSL bug (state screwups after switching back to...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Jan 2005 21:51:16 +0000 (21:51 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 24 Jan 2005 21:51:16 +0000 (21:51 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4959 d7cf8633-e32d-0410-b094-e92efae38249

r_shadow.c

index dc711c29afd3afd6d3ff94d2cfc2dc8be0c83b95..cd0dae4f7e2f74e8bbdba86da4ec003ad61dc946 100644 (file)
@@ -1659,6 +1659,9 @@ void R_Shadow_RenderLighting(int numverts, int numtriangles, const int *elements
                c_rt_lighttris += numtriangles;
                GL_LockArrays(0, 0);
                qglUseProgramObjectARB(0);
+               // HACK HACK HACK: work around for stupid NVIDIA bug that causes GL_OUT_OF_MEMORY and/or software rendering
+               qglBegin(GL_TRIANGLES);
+               qglEnd();
        }
        else if (gl_dot3arb && gl_texturecubemap && gl_combine.integer && gl_stencil)
        {