Generate texture coordinates for limited NPOT support
author Martin Gräßlin
()
committer Martin Gräßlin
()
commit b22f64f95509c0b9f343c64e60bfcbe2b08d0a0a
tree e35b9920250a2da81faa0c7d91934d2b0f08893b
parent cab2fee5c934ade31d457d470b042b578f74b9d8
Generate texture coordinates for limited NPOT support

Fixes rendering issues with R300 and similar GPUs. If the texture
uses GL_TEXTURE_RECTANGLE_ARB as target the tex coordinates need
to be adjusted. This at least fixes missing text on EffectFrames
with graphicssystem native on R300. Hopefully more issues are
resolved by the change.

BUG: 269576
CCBUG: 282882
FIXED-IN: 4.7.3
kwin/libkwineffects/kwinglutils.cpp