1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-10 18:51:21 +03:00
occt/tests/bugs/vis/bug79
abv 3bb61eb0fe 0029996: Porting to VC 2017: memory leak reported in visualisation
Tests for memory leaks on display / erase cycles are performed with VBO disabled to avoid false memory leaks reported on NVidia graphics
2019-02-26 15:23:18 +03:00

22 lines
395 B
Plaintext

puts "========"
puts "OCC79"
puts "========"
# disable VBO to avoid false memory leaks reported
# on NVidia graphics, see issue #29996
vcaps -vbo 0
vinit
restore [locate_data_file OCC162.brep] s
vdisplay s
set listmem {}
set i_max 10
for {set i 1} {${i} <= ${i_max}} {incr i} {
verase s
vdisplay s
lappend listmem [meminfo h]
checktrend $listmem 0 1 "Memory leak detected"
}