LLRenderTarget::copyContents more lenient to errors.
This commit is contained in:
@@ -526,7 +526,8 @@ void LLRenderTarget::copyContents(LLRenderTarget& source, S32 srcX0, S32 srcY0,
|
|||||||
gGL.flush();
|
gGL.flush();
|
||||||
if (!source.mFBO || !mFBO)
|
if (!source.mFBO || !mFBO)
|
||||||
{
|
{
|
||||||
llerrs << "Cannot copy framebuffer contents for non FBO render targets." << llendl;
|
llwarns << "Cannot copy framebuffer contents for non FBO render targets." << llendl;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mSampleBuffer)
|
if (mSampleBuffer)
|
||||||
@@ -580,7 +581,8 @@ void LLRenderTarget::copyContentsToFramebuffer(LLRenderTarget& source, S32 srcX0
|
|||||||
{
|
{
|
||||||
if (!source.mFBO)
|
if (!source.mFBO)
|
||||||
{
|
{
|
||||||
llerrs << "Cannot copy framebuffer contents for non FBO render targets." << llendl;
|
llwarns << "Cannot copy framebuffer contents for non FBO render targets." << llendl;
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
GLboolean write_depth = mask & GL_DEPTH_BUFFER_BIT ? TRUE : FALSE;
|
GLboolean write_depth = mask & GL_DEPTH_BUFFER_BIT ? TRUE : FALSE;
|
||||||
|
|||||||
Reference in New Issue
Block a user