summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2013-09-09 20:45:28 -0700
committerVinson Lee <vlee@freedesktop.org>2013-09-10 09:49:02 -0700
commit118cdd1d3f572ac06bb3570fd987a6528ed34a09 (patch)
treebbed89cd1342dd2e3dcedae5d2de1d3965c20762
parent395b9410860371a64d6b5f2d50679f29eb41729e (diff)
glsl: Initialize builtin_builder member variables.
Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r--src/glsl/builtin_functions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/builtin_functions.cpp b/src/glsl/builtin_functions.cpp
index 5d8f171b9a..1fedca4ceb 100644
--- a/src/glsl/builtin_functions.cpp
+++ b/src/glsl/builtin_functions.cpp
@@ -525,6 +525,9 @@ private:
* @{
*/
builtin_builder::builtin_builder()
+ : shader(NULL),
+ gl_ModelViewProjectionMatrix(NULL),
+ gl_Vertex(NULL)
{
mem_ctx = NULL;
}