0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
[occt.git] / tests / bugs / vis / bug25732_2
1 puts "========"
2 puts "OCC25732"
3 puts "========"
4 puts ""
5 #########################################################################################
6 # Visualization, TKOpenGl - back face culling should not affect textured font rendering
7 #########################################################################################
8
9 vfont add [locate_data_file DejaVuSans.ttf] SansFont
10
11 box b 1 2 3
12 explode b F
13
14 vinit
15 vsetdispmode 1
16
17 vdisplay b_1 b_2
18 vfit
19
20 vdrawtext text "SAMPLE TEXT" -pos 1 0 3 -color 1.0 0.0 0.0 -halign left -valign bottom -angle 0 -zoom 0 -height 30 -aspect regular -font SansFont
21
22 set bug_info [vreadpixel 260 137 rgb name]
23 if {$bug_info != "RED"} {
24   puts "ERROR: OCC25732 is reproduced. Text is missed."
25 }
26
27 checkview -screenshot -3d -path ${imagedir}/${test_image}.png