projects
/
occt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8187bb
)
0025851: Visualization, TKOpenGl - do not use FBO cache when GLSL is unavailable
author
kgv
<kgv@opencascade.com>
Fri, 20 Feb 2015 17:01:46 +0000
(20:01 +0300)
committer
bugmaster
<bugmaster@opencascade.com>
Thu, 26 Feb 2015 09:54:54 +0000
(12:54 +0300)
src/OpenGl/OpenGl_Workspace.cxx
patch
|
blob
|
blame
|
history
diff --git
a/src/OpenGl/OpenGl_Workspace.cxx
b/src/OpenGl/OpenGl_Workspace.cxx
index
80e6ff1
..
d9f8cca
100644
(file)
--- a/
src/OpenGl/OpenGl_Workspace.cxx
+++ b/
src/OpenGl/OpenGl_Workspace.cxx
@@
-674,7
+674,12
@@
void OpenGl_Workspace::Redraw (const Graphic3d_CView& theCView,
if (myResultFBO->GetVPSizeX() != aSizeX
|| 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())
{