1
0
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:
kgv
2015-07-20 20:58:55 +03:00
committed by bugmaster
parent c8bf1eb747
commit c6ad5e5f39
4 changed files with 62 additions and 12 deletions

31
tests/bugs/vis/bug26424 Normal file
View 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