glsl: Initialize coordinate to NULL in ir_texture constructor.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 9 Jul 2012 19:36:49 +0000 (12:36 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Jul 2012 17:19:38 +0000 (10:19 -0700)
commitb656df990f8c1d7468e11afa2079511d8b1febf4
treecbde41d4819bf862a1554b9f804eef886640a631
parentd9a8cd76e5a156eb8af686eba614b9fada7258fe
glsl: Initialize coordinate to NULL in ir_texture constructor.

I ran into this while trying to create a TXS query, which doesn't have a
coordinate.  Since it didn't get initialized to NULL, a bunch of
visitors tried to access it and crashed.

Most of the time, this won't be a problem, but it's just a good idea.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/ir.h