mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
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
This commit is contained in:
31
tests/bugs/vis/bug26424
Normal file
31
tests/bugs/vis/bug26424
Normal file
@@ -0,0 +1,31 @@
|
||||
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
|
Reference in New Issue
Block a user