opengl: Add exceptions for cliping stacks

* Cherry pick of 1bb72bcc306dbe9b5b9