(GL) Hoist some more identical lines out of if (stencil) else block