mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0026538: Visualization - Infinite growth of maxtrix stack in OpenGl_Structure::Render
Test case for issue CR26538 Small correction
This commit is contained in:
27
tests/bugs/vis/bug26538
Executable file
27
tests/bugs/vis/bug26538
Executable file
@@ -0,0 +1,27 @@
|
||||
puts "============"
|
||||
puts "OCC26538"
|
||||
puts "============"
|
||||
puts ""
|
||||
#######################################################################
|
||||
# Visualization - Infinite growth of maxtrix stack in OpenGl_Structure::Render
|
||||
#######################################################################
|
||||
|
||||
box b1 1 1 1
|
||||
box b2 1 1 1
|
||||
|
||||
vinit
|
||||
vdisplay b1
|
||||
vdisplay b2
|
||||
vsetlocation b2 10 10 10
|
||||
vfit
|
||||
|
||||
set listmem {}
|
||||
|
||||
set i_max 3
|
||||
for {set i 1} {${i} <= ${i_max}} {incr i} {
|
||||
vfps 1000
|
||||
lappend listmem [meminfo h]
|
||||
checktrend $listmem 0 1 "Memory leak detected"
|
||||
}
|
||||
|
||||
vdump ${imagedir}/${casename}.png
|
Reference in New Issue
Block a user