summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2013-09-09 20:45:28 -0700
committerVinson Lee <[email protected]>2013-09-10 09:49:02 -0700
commit118cdd1d3f572ac06bb3570fd987a6528ed34a09 (patch)
treebbed89cd1342dd2e3dcedae5d2de1d3965c20762 /src
parent395b9410860371a64d6b5f2d50679f29eb41729e (diff)
glsl: Initialize builtin_builder member variables.
Fixes "Uninitialized pointer field" defect reported by Coverity. Signed-off-by: Vinson Lee <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src')
-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 5d8f171b9a8..1fedca4cebb 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;
}