Mesa (glsl2): glsl2: Initialize the ARB_fcc fields of ir_variable.
Eric Anholt
anholt at kemper.freedesktop.org
Mon Aug 2 18:23:34 UTC 2010
Module: Mesa
Branch: glsl2
Commit: 960ba0014af7009f8543c55f455271cf3cb45cd6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=960ba0014af7009f8543c55f455271cf3cb45cd6
Author: Eric Anholt <eric at anholt.net>
Date: Mon Aug 2 11:20:32 2010 -0700
glsl2: Initialize the ARB_fcc fields of ir_variable.
Fixes intermittent failure in glsl-arb-fragment-coord-conventions.
---
src/glsl/ir.cpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/glsl/ir.cpp b/src/glsl/ir.cpp
index 2b5f441..79cbaa9 100644
--- a/src/glsl/ir.cpp
+++ b/src/glsl/ir.cpp
@@ -802,6 +802,8 @@ ir_variable::ir_variable(const struct glsl_type *type, const char *name,
this->location = -1;
this->warn_extension = NULL;
this->constant_value = NULL;
+ this->origin_upper_left = false;
+ this->pixel_center_integer = false;
if (type && type->base_type == GLSL_TYPE_SAMPLER)
this->read_only = true;
More information about the mesa-commit
mailing list