Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
opengl: Bail if cached shader fails to load
QOpenGLProgramBinaryCache::setProgramBinary() should check GL_LINK_STATUS after glProgramBinary(), but doesn't. In practice, this means that SDDM is a white screen, and KDE is just a gray task bar. So far, Qt tries to check this using its internal ::link() function. But in case the cached binary fails to load, Qt currently attempts to link the inexistent program, resulting in a zero-length, fixed pipeline shader. Checking this already in ::setProgramBinary() makes the call to ::link() superfluous, so we remove that as well. Done-with: Max Staudt <[email protected]> Done-with: Michal Srb <[email protected]> Done-with: Fabian Vogt <[email protected]> Task-number: QTBUG-66420 Change-Id: Iabb51d0eb2c0c16bde696efff623e57d15f28d82 Reviewed-by: Jesus Fernandez <[email protected]> Reviewed-by: Laszlo Agocs <[email protected]>
- Loading branch information