Bug 1017865 - Refactor attach/detach for FB attachments. - r=kamidphish

This commit is contained in:
Jeff Gilbert
2015-03-24 16:00:28 -07:00
parent 3aed2f4f11
commit 26f1de3dba
10 changed files with 337 additions and 418 deletions

View File

@@ -181,6 +181,8 @@ WebGLRenderbuffer::RenderbufferStorage(GLsizei samples, GLenum internalFormat,
{
MOZ_ASSERT(mContext->mBoundRenderbuffer == this);
InvalidateStatusOfAttachedFBs();
gl::GLContext* gl = mContext->gl;
MOZ_ASSERT(samples >= 0 && samples <= 256); // Sanity check.