diff options
author | Marek Olšák <maraeo@gmail.com> | 2011-06-09 04:07:32 +0200 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2011-06-09 04:07:32 +0200 |
commit | 154009e2b18e032b6bb5eede7809ec7c4894ba6e (patch) | |
tree | 79f816131980f5d4c22a0f9e2a1877e52ea266f0 /tests | |
parent | 1f3bb7d434228684a4bddd09830157fa8c246288 (diff) |
texwrap: set wrap R mode even for non-3D textures
Reproduces a bug in r300g.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/texturing/texwrap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/texturing/texwrap.c b/tests/texturing/texwrap.c index e5c33a46a..ec47ee308 100644 --- a/tests/texturing/texwrap.c +++ b/tests/texturing/texwrap.c @@ -647,10 +647,8 @@ static void draw() wrap_modes[j].mode); glTexParameteri(texture_target, GL_TEXTURE_WRAP_T, wrap_modes[j].mode); - if (texture_target == GL_TEXTURE_3D) { - glTexParameteri(texture_target, GL_TEXTURE_WRAP_R, - wrap_modes[j].mode); - } + glTexParameteri(texture_target, GL_TEXTURE_WRAP_R, + wrap_modes[j].mode); glPushMatrix(); glTranslatef(offset * (TILE_SIZE + TILE_SPACE) + 5, |