From 543289155081ed461ad47fc137ad240fee2e2b92 Mon Sep 17 00:00:00 2001 From: apl Date: Fri, 14 Mar 2014 15:30:29 +0400 Subject: [PATCH] 0024728: A lot of tests are crashed on vdump command on Windows in debug mode --- src/V3d/V3d_View.cxx | 2 +- tests/bugs/vis/bug24728 | 17 +++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 tests/bugs/vis/bug24728 diff --git a/src/V3d/V3d_View.cxx b/src/V3d/V3d_View.cxx index 1bf93d0478..9215239869 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -3135,7 +3135,7 @@ Standard_Boolean V3d_View::ToPixMap (Image_PixMap& theImage, if (theToKeepAspect) { - myCamera->SetAspect ((Standard_Real) aFBOVPSizeX / aFBOSizeYMax); + myCamera->SetAspect ((Standard_Real) aFBOVPSizeX / aFBOVPSizeY); } //workaround for rendering list of Over and Under Layers diff --git a/tests/bugs/vis/bug24728 b/tests/bugs/vis/bug24728 new file mode 100644 index 0000000000..5a4c0401fc --- /dev/null +++ b/tests/bugs/vis/bug24728 @@ -0,0 +1,17 @@ +puts "============" +puts "CR24728" +puts "============" +puts "" + +############################################################ +# Test image dumping with software accelerated GL context +############################################################ + +vcaps soft=1 +vinit View1 + +box b 1 2 3 +vdisplay b +vfit + +vdump $imagedir/${casename}.png -- 2.39.5