Comment 36 for bug 1583088

Revision history for this message
Gerry Boland (gerboland) wrote :

@vanvugt
you were right that glPixelStorei was to blame. In ShmBuffer Mir uses glPixelStorei to change the GL_UNPACK_ALIGNMENT from 4 (that Qt set) to 1 (that Mir sets, as it is more careful about stride).

Mir fails to restore the state the Qt set, which broke Qt's rendering from then on.

ShmBuffer only used for clients that do not use GL to draw, so Gtk and mir demos like fingerpaint, which is why this bug was "random"

Could Mir be patched to revert any GL state changes it makes, when called into by Qt?