1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-04 18:06:22 +03:00

0023001: Mistake in OpenGl_FrameBuffer::IsValidDepthBuffer

This commit is contained in:
apl 2012-03-21 15:59:42 +04:00 committed by bugmaster
parent 34a44cbd3b
commit 96352003af
2 changed files with 6 additions and 1 deletions

View File

@ -136,7 +136,7 @@ private:
Standard_Boolean IsValidDepthBuffer() const
{
return myGlTextureId != NO_RENDERBUFFER;
return myGlDepthRBId != NO_RENDERBUFFER;
}
private:

View File

@ -731,9 +731,14 @@ Standard_Boolean OpenGl_Workspace::Print
glViewport (aViewPortBack[0], aViewPortBack[1],
aViewPortBack[2], aViewPortBack[3]);
if (aPrevBuffer)
{
aPrevBuffer->ChangeViewport (aPrevBufferX, aPrevBufferY);
}
else
{
aFrameBuffer->Release (GetGlContext ());
delete aFrameBuffer;
}
// delete resources
#ifndef HAVE_FREEIMAGE