6c7ddf00 |
1 | ## It's impossible to make vdump with non-default parameters (width and height) on remote PC |
6c7ddf00 |
2 | |
74706083 |
3 | puts "============" |
4 | puts "OCC23813" |
5 | puts "============" |
6 | puts "" |
7 | ####################################################################### |
8 | # TKOpenGl, OpenGl_Texture ignores stride image property |
9 | ####################################################################### |
10 | |
11 | file delete -force ${imagedir}/texture_412.png |
12 | file delete -force ${imagedir}/texture_409.png |
13 | |
14 | box b 1 2 3 |
15 | vinit |
16 | vsetdispmode 1 |
17 | vdisplay b |
18 | vfit |
f978241f |
19 | vdump ${imagedir}/texture_409.png -buffer rgb -width 409 -height 409 |
20 | vdump ${imagedir}/texture_412.png -buffer rgb -width 412 -height 412 |
74706083 |
21 | |
22 | # texture loaded correctly |
23 | vtexture b ${imagedir}/texture_412.png |
24 | |
25 | # texture is corrupted during uploading to OpenGL |
26 | vtexture b ${imagedir}/texture_409.png |
27 | |
28 | set only_screen 1 |