Merge pull request #950 from bkaradzic/revert-949-pr/ios-framebuffer-invalidate-fix

Revert "glInvalidateFramebuffer: iOS (iPad Mini 2, iOS 10.0.1) invalid enum work around"
This commit is contained in:
Branimir Karadžić 2016-10-16 18:50:16 -07:00 committed by GitHub
commit af1bd417ca

View File

@ -5982,7 +5982,7 @@ namespace bgfx { namespace gl
{ {
if ( (BGFX_CLEAR_DISCARD_DEPTH|BGFX_CLEAR_DISCARD_STENCIL) == dsFlags) if ( (BGFX_CLEAR_DISCARD_DEPTH|BGFX_CLEAR_DISCARD_STENCIL) == dsFlags)
{ {
buffers[idx++] = GL_DEPTH_ATTACHMENT|GL_STENCIL_ATTACHMENT; buffers[idx++] = GL_DEPTH_STENCIL_ATTACHMENT;
} }
else if (BGFX_CLEAR_DISCARD_DEPTH == dsFlags) else if (BGFX_CLEAR_DISCARD_DEPTH == dsFlags)
{ {