Assuming the current value is 4 might be incorrect in this case but also
won't cause the bug unless they also fail to call
"glPixelStorei(GL_UNPACK_ALIGNMENT, 4)" somewhere that they need it to
be 4.

Where you see Qt code that uses alignment 1, that's not relevant here
because it will play perfectly with Mir. The problem is elsewhere...
some GL unpacking without a glPixelStorei call is being done and that
location expects/requires alignment of 4.

So I guess start by searching for all glTexImage2D calls and ensure they
are all /immediately/ preceded by glPixelStorei. It's possible Qt
already has some housekeeping for that but then the bind call happens in
the middle:

Qt: glPixelStorei(GL_UNPACK_ALIGNMENT, 4);
Qt: calls the offending Mir bind code
Qt: glTexSubImage2D or glTexImage2D

So the fix then would still be in qtdeclarative; either reorder lines 1
& 2, or add another glPixelStorei call in before the glTex*Image2D calls
in Qt.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to qtdeclarative-opensource-
src in Ubuntu.
https://bugs.launchpad.net/bugs/1583088

Title:
  Randomly corrupt font / text / characters in Unity8

Status in Canonical System Image:
  In Progress
Status in Mir:
  Won't Fix
Status in gnome-desktop package in Ubuntu:
  Invalid
Status in mir package in Ubuntu:
  Won't Fix
Status in qtdeclarative-opensource-src package in Ubuntu:
  New
Status in qtmir package in Ubuntu:
  In Progress
Status in unity8 package in Ubuntu:
  Invalid

Bug description:
  Corrupted characters in text rendering.

  Only happens after starting non-GL application, like GTK application
  or mir_demo_client_fingerpaint.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1583088/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to