Clear and InvalidateFramebuffer optimization

This commit is contained in:
Magnus Norddahl 2016-08-17 17:37:13 +02:00
commit 5eeac830eb
3 changed files with 12 additions and 8 deletions

View file

@ -244,6 +244,8 @@ void gl_LoadExtensions()
gl.buffermethod = BM_PERSISTENT;
}
if (gl.version >= 4.3f || CheckExtension("GL_ARB_invalidate_subdata")) gl.flags |= RFL_INVALIDATE_BUFFER;
const char *lm = Args->CheckValue("-lightmethod");
if (lm != NULL)
{