[Mesa-dev] [Bug 66833] Text rendering problems on Dota 2, all mesa drivers
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Jul 13 14:58:38 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=66833
--- Comment #8 from Micael Dias <kam1kaz3 at gmail.com> ---
The trace from Comment #4 shows:
"174368) glTexImage2D(target = GL_TEXTURE_2D, level = 0, internalformat =
GL_RED, width = 1024, height = 1024, border = 0, format = GL_RED, type =
GL_UNSIGNED_BYTE, pixels = [binary data, size = 1024 kb]"
while the equivalent call with LIBGL_ALWAYS_SOFTWARE=1 shows:
"228562) glTexImage2D(target = GL_TEXTURE_2D, level = 0, internalformat =
GL_ALPHA, width = 1024, height = 1024, border = 0, format = GL_ALPHA, type =
GL_UNSIGNED_BYTE, pixels = [binary data, size = 1024 kb])"
This is apparently the call that fills the texture with the font glyphs. In the
hardware accelerated call we're left with a texture containing only the RED
channel, while the software version gives us an ALPHA channel.
However, when rendering the glyphs, the same fragment shader is used uses the
alpha channel in both code paths. I believe this is the problem.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130713/399fd852/attachment.html>
More information about the mesa-dev
mailing list