From: Bryan Cain Date: Thu, 16 Jun 2011 18:42:57 +0000 (-0500) Subject: glsl_to_tgsi: fix compile error with g++ 4.6 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=552cc48fca9b932fceb3d8fa7f9d0067f46b67c2;p=mesa.git glsl_to_tgsi: fix compile error with g++ 4.6 --- diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 5fedf263090..6c92441a105 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp @@ -389,7 +389,7 @@ public: void *mem_ctx; }; -static st_src_reg undef_src = st_src_reg(PROGRAM_UNDEFINED, 0, NULL); +static st_src_reg undef_src = st_src_reg(PROGRAM_UNDEFINED, 0, GLSL_TYPE_ERROR); static st_dst_reg undef_dst = st_dst_reg(PROGRAM_UNDEFINED, SWIZZLE_NOOP, GLSL_TYPE_ERROR);