checkForGlError for Stencil/Depth/Color