1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
kgv be3752526f 0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
OpenGl_Caps - flag ffpEnable is now initialized to false on desktop OpenGL.
OpenGl_Context::init() - now prints error if OpenGL version does not support GLSL
and switches OpenGl_Caps::ffpEnable to true.

update test cases
2016-07-28 15:14:12 +03:00

17 lines
560 B
Plaintext

vcaps -ffp 1
vexport ${aFile} ${format}
vglinfo
checkview -screenshot -3d -path ${imagedir}/${test_image}.png
if { [file exists ${aFile}] } {
puts "The file has been exported to ${format}."
set filesize [file size ${aFile}]
# Check if difference of size is more 5%
if { $filesize < $size && [expr 1.*($size - $filesize)/$size] > 0.05 } {
puts "Error: The file has been exported to ${format}, but the result has a different size ($filesize instead of $size)."
}
} else {
puts "Error: Impossible to export file to ${format}."
}