[Mesa-dev] mesa: use clear_teximage_fields() in another place

Submitted by Brian Paul on March 4, 2014, 10:18 p.m.

Details

Message ID 1393971481-1637-1-git-send-email-brianp@vmware.com
State New
Headers show

Not browsing as part of any series.

Commit Message

Brian Paul March 4, 2014, 10:18 p.m.
Similar to Anuj's change 0f6f92e284cb5.
---
 src/mesa/main/teximage.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Patch hide | download patch | download mbox

diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index a6c3581..4346c31 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -4487,8 +4487,7 @@  teximagemultisample(GLuint dims, GLenum target, GLsizei samples,
              * we're allowed to just leave this in whatever state we
              * like, but being tidy is good.
              */
-            _mesa_init_teximage_fields(ctx, texImage,
-                  0, 0, 0, 0, GL_NONE, MESA_FORMAT_NONE);
+            clear_teximage_fields(texImage);
          }
       }