summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorRobert Ellison <[email protected]>2009-05-13 20:40:23 -0600
committerIan Romanick <[email protected]>2009-06-17 12:55:26 -0700
commitd446d3acacdffa7c0f744764214b2bea5e191678 (patch)
tree5ee08fd37c20ed82b5e34bf8504617f8ec18a259 /src/mesa/main
parent56235ae5049bee929c83f6932db077afaa5930f8 (diff)
i965: fix 1D texture borders with GL_CLAMP_TO_BORDER
With 1D textures, GL_TEXTURE_WRAP_T should be ignored (only GL_TEXTURE_WRAP_S should be respected). But the i965 hardware seems to follow the value of GL_TEXTURE_WRAP_T even when sampling 1D textures. This fix forces GL_TEXTURE_WRAP_T to be GL_REPEAT whenever 1D textures are used; this allows the texture to be sampled correctly, avoiding "imaginary" border elements in the T direction. This bug was demonstrated in the Piglit tex1d-2dborder test. With this fix, that test passes. (cherry picked from commit ab6c4fa582972e25f8800c77b5dd5b3a83afc996)
Diffstat (limited to 'src/mesa/main')
0 files changed, 0 insertions, 0 deletions