From: apl Date: Fri, 14 Mar 2014 11:30:29 +0000 (+0400) Subject: 0024728: A lot of tests are crashed on vdump command on Windows in debug mode X-Git-Tag: V6_8_0_beta~482 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=543289155081ed461ad47fc137ad240fee2e2b92;p=occt-copy.git 0024728: A lot of tests are crashed on vdump command on Windows in debug mode --- 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