0029528: Visualization, TKOpenGl - allow defining sRGB textures
[occt.git] / tests / bugs / vis / bug172
1 puts "========"
2 puts "OCC172"
3 puts "========"
4
5 pload XDE
6
7 # disable VBO to avoid false memory leaks reported
8 # on NVidia graphics, see issue #29996
9 vcaps -vbo 0
10
11 vinit
12 restore [locate_data_file OCC162.brep] s 
13 vdisplay s
14
15 set listmem {}
16 set i_max 10
17 for {set i 1} {${i} <= ${i_max}} {incr i} {
18     # select shape
19     OCC172
20     # deselect shape
21     OCC172
22
23     lappend listmem [meminfo h]
24     checktrend $listmem 0 1 "Memory leak detected"
25 }