diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-06-29 17:24:32 +0200 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2008-06-29 17:34:14 +0200 |
commit | 0918023c28775ef6126e9f695a976ff199cd9a13 (patch) | |
tree | 0f8676134d130b49065e430cca539660ecd86065 /progs/demos | |
parent | bc775066aa9bbbf0cf5f1d5ced81f81e4cb0b731 (diff) | |
download | external_mesa3d-0918023c28775ef6126e9f695a976ff199cd9a13.zip external_mesa3d-0918023c28775ef6126e9f695a976ff199cd9a13.tar.gz external_mesa3d-0918023c28775ef6126e9f695a976ff199cd9a13.tar.bz2 |
demos/shadowtex: Don't set TEXTURE_WRAP_T for 1D texture
The operation doesn't really make sense. It triggered a bug in the r300 DRI
driver (and possibly other drivers that simulate 1D textures via 2D textures).
I've added an isolated test case for this bug to Piglit, so everybody wins.
Diffstat (limited to 'progs/demos')
-rw-r--r-- | progs/demos/shadowtex.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/progs/demos/shadowtex.c b/progs/demos/shadowtex.c index b6bdbe4..4787f0f 100644 --- a/progs/demos/shadowtex.c +++ b/progs/demos/shadowtex.c @@ -955,7 +955,6 @@ Init(void) glGenTextures(1, &GrayTexture); glBindTexture(GL_TEXTURE_1D, GrayTexture); glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_S, GL_CLAMP); - glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_WRAP_T, GL_CLAMP); glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MIN_FILTER, GL_LINEAR); glTexParameteri(GL_TEXTURE_1D, GL_TEXTURE_MAG_FILTER, GL_LINEAR); { |