demos/shadowtex: Don't set TEXTURE_WRAP_T for 1D texture
authorNicolai Haehnle <nhaehnle@gmail.com>
Sun, 29 Jun 2008 15:24:32 +0000 (17:24 +0200)
committerNicolai Haehnle <nhaehnle@gmail.com>
Sun, 29 Jun 2008 15:34:14 +0000 (17:34 +0200)
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.

progs/demos/shadowtex.c

index b6bdbe467c569aa313322715090b50a4c6df33f1..4787f0f29d2aa6b86e597ffe970e51cf2bfba71f 100644 (file)
@@ -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);
    {