mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1237748 - Avoid deleting the stencil RB if it's the same as the depth RB. r=jgilbert
--HG-- extra : rebase_source : d0f4b46dd9c9bfbb49020c44959bb8d36912bb6c
This commit is contained in:
parent
8a1688e6aa
commit
a496f20f3f
@ -878,7 +878,7 @@ DrawBuffer::~DrawBuffer()
|
||||
GLuint rbs[] = {
|
||||
mColorMSRB,
|
||||
mDepthRB,
|
||||
mStencilRB
|
||||
(mStencilRB != mDepthRB) ? mStencilRB : 0, // Don't double-delete DEPTH_STENCIL RBs.
|
||||
};
|
||||
|
||||
mGL->fDeleteFramebuffers(1, &fb);
|
||||
@ -966,11 +966,12 @@ ReadBuffer::~ReadBuffer()
|
||||
GLuint fb = mFB;
|
||||
GLuint rbs[] = {
|
||||
mDepthRB,
|
||||
mStencilRB
|
||||
(mStencilRB != mDepthRB) ? mStencilRB : 0, // Don't double-delete DEPTH_STENCIL RBs.
|
||||
};
|
||||
|
||||
mGL->fDeleteFramebuffers(1, &fb);
|
||||
mGL->fDeleteRenderbuffers(2, rbs);
|
||||
|
||||
mGL->mFBOMapping.erase(mFB);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user