mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0025851: Visualization, TKOpenGl - do not use FBO cache when GLSL is unavailable
This commit is contained in:
parent
c8187bb218
commit
760c21c2c4
@ -674,7 +674,12 @@ void OpenGl_Workspace::Redraw (const Graphic3d_CView& theCView,
|
|||||||
if (myResultFBO->GetVPSizeX() != aSizeX
|
if (myResultFBO->GetVPSizeX() != aSizeX
|
||||||
|| myResultFBO->GetVPSizeY() != aSizeY)
|
|| myResultFBO->GetVPSizeY() != aSizeY)
|
||||||
{
|
{
|
||||||
myResultFBO->Init (aGlCtx, aSizeX, aSizeY);
|
// prepare FBOs containing main scene
|
||||||
|
// for further blitting and rendering immediate presentations on top
|
||||||
|
if (aGlCtx->core20fwd != NULL)
|
||||||
|
{
|
||||||
|
myResultFBO->Init (aGlCtx, aSizeX, aSizeY);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (myResultFBO->IsValid())
|
if (myResultFBO->IsValid())
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user