summaryrefslogtreecommitdiffstats
path: root/src/plugins/graphicssystems
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-07-15 12:37:47 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-07-18 13:14:34 (GMT)
commit9f6d3ebf349dbf77a9c499aeea75cb220181658c (patch)
treeb601474b2b079c57ec44942d1ffc7fa9cf1eaeef /src/plugins/graphicssystems
parentb5d357d63aeb28b8be62f1a3004a6a7969c7a81e (diff)
downloadQt-9f6d3ebf349dbf77a9c499aeea75cb220181658c.zip
Qt-9f6d3ebf349dbf77a9c499aeea75cb220181658c.tar.gz
Qt-9f6d3ebf349dbf77a9c499aeea75cb220181658c.tar.bz2
Don't use GL_REPEAT for NPOT textures in GLES2.
We already handle NPOT textures correctly by calling fract() on the texture coordinates in the fragment shader, but we also need to make sure not to set GL_REPEAT as the wrap mode, because the GLES2 spec says that the driver should return (0, 0, 0, 1) if an NPOT texture has wrap mode different from GL_CLAMP_TO_EDGE. Previous GLES2-implementations we've tested on have thus not been GLES2-compliant (or supported GL_OES_texture_npot). Partial back-port / modification of c5a377e944f9a87c372ff8371c66b03d861803a6 in 4.8. Reviewed-by: Kim
Diffstat (limited to 'src/plugins/graphicssystems')
0 files changed, 0 insertions, 0 deletions