aCtx->core11fwd->glDisable (GL_DEPTH_TEST);
}
- aCtx->WorldViewState.Push();
aCtx->ProjectionState.Push();
- aCtx->WorldViewState.SetIdentity();
+ aCtx->WorldViewState.Push();
+ aCtx->ModelWorldState.Push();
aCtx->ProjectionState.SetIdentity();
+ aCtx->WorldViewState.SetIdentity();
+ aCtx->ModelWorldState.SetIdentity();
aCtx->ApplyProjectionMatrix();
- aCtx->ApplyWorldViewMatrix();
+ aCtx->ApplyModelViewMatrix();
// Drawing background gradient if:
// - gradient fill type is not Aspect_GFM_NONE and
theWorkspace->SetAspectFace (anOldAspectFace);
}
+ aCtx->ModelWorldState.Pop();
aCtx->WorldViewState.Pop();
aCtx->ProjectionState.Pop();
aCtx->ApplyProjectionMatrix();
- aCtx->ApplyWorldViewMatrix();
+ aCtx->ApplyModelViewMatrix();
if (wasUsedZBuffer)
{
--- /dev/null
+puts "============"
+puts "CR26599"
+puts "============"
+puts ""
+
+##########################################################################################
+# Visualization, TKOpenGl - gradient background should reset model transformation in Core profile
+##########################################################################################
+
+vcaps -ffp 0
+
+vinit View1
+vclear
+vaxo
+
+vsetgradientbg 255 0 0 0 0 255 2
+box b 1 2 3
+vdisplay b
+
+vfit
+
+vlocrotate b 0 0 0 0 0 1 50
+
+vmoveto 380 50
+checkcolor 380 50 0.87450981140136719 0 0.12156862765550613
+
+vdump ${imagedir}/${casename}.png