1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00

0022906: Gradient background is clipped by planes

This commit is contained in:
SZV 2012-01-27 13:52:58 +00:00 committed by bugmaster
parent 6b09c923a9
commit 46921bd5c8

View File

@ -1236,6 +1236,14 @@ TelClearBackground( Tint Wsid /* Workstation id */ )
#endif
tsm_bg_gradient gradient;
// Disable clipping planes
GLint ii = 0, max_plane = 0;
glGetIntegerv( GL_MAX_CLIP_PLANES, &max_plane );
while (ii < max_plane) {
const GLint planeid = GL_CLIP_PLANE0 + ii++;
if (glIsEnabled(planeid));
glDisable(planeid);
}
TsmGetWSAttri (Wsid, WSBackground, &key);
rgb = (Tfloat *)key.pdata;