Disable certain GL calls when depth and/or stencil buffers are not available