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:
parent
34a44cbd3b
commit
96352003af
@ -136,7 +136,7 @@ private:
|
||||
|
||||
Standard_Boolean IsValidDepthBuffer() const
|
||||
{
|
||||
return myGlTextureId != NO_RENDERBUFFER;
|
||||
return myGlDepthRBId != NO_RENDERBUFFER;
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user