1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-05-16 10:54:53 +03:00
occt/tests/bugs/vis/bug26424
kgv 1a8e73d756 0026424: Visualization, TKOpenGl - fix text rendering in core profile
OpenGl_Context::init() - fix condition on initializing alien OpenGL context within core profile.
OpenGl_Font::renderGlyph() - use GL_RED data format in core profile.
OpenGl_Text::render() - do not use GL_ALPHA_TEST in core profile.

Test-case for issue #26424
2015-09-02 14:38:20 +03:00

32 lines
683 B
Plaintext

puts "========"
puts "OCC26424"
puts "========"
puts ""
################################################################
# Text is not rendered within core profile on Windows platform
################################################################
vcaps -core
vinit View1
vclear
vaxo
vzbufftrihedron
if { [array get env os_type] != "" } {
set os $env(os_type)
}
if { [string compare $os "windows"] != 0 } {
# Linux platform
set ok_color "GRAY85"
} else {
# Windows platform
set ok_color "GRAY52"
}
set bug_info [vreadpixel 71 350 rgb name]
if {$bug_info != $ok_color} {
puts "ERROR: OCC26424 is reproduced. Trihedron does non have text labels."
}
set only_screen 1