Commits

Romain Guy authored f158198ccc3
Discard the correct buffer when the bound FBO is not 0 glDiscardFramebufferEXT uses different constants depending on whether the default FBO is bound or not. The code was choosing the proper value for the color buffer but not for the stencil buffer. Change-Id: I55cfcbdf663582119cb1a6289317016440d9e361