Add a configure option to disable render at compile time, fix depth/visual mismatch with some applications when render is disabled (bug #1617). (Old svn revision: 23502)