summaryrefslogtreecommitdiff
path: root/graphics/MesaLib/patches/patch-src_compiler_glsl_builtin__functions.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/MesaLib/patches/patch-src_compiler_glsl_builtin__functions.cpp')
-rw-r--r--graphics/MesaLib/patches/patch-src_compiler_glsl_builtin__functions.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/MesaLib/patches/patch-src_compiler_glsl_builtin__functions.cpp b/graphics/MesaLib/patches/patch-src_compiler_glsl_builtin__functions.cpp
new file mode 100644
index 00000000000..62909e45e00
--- /dev/null
+++ b/graphics/MesaLib/patches/patch-src_compiler_glsl_builtin__functions.cpp
@@ -0,0 +1,12 @@
+$NetBSD: patch-src_compiler_glsl_builtin__functions.cpp,v 1.1 2017/01/15 00:13:44 wiz Exp $
+
+--- src/compiler/glsl/builtin_functions.cpp.orig 2016-05-09 12:51:42.000000000 +0000
++++ src/compiler/glsl/builtin_functions.cpp
+@@ -853,6 +853,7 @@ builtin_builder::builtin_builder()
+ builtin_builder::~builtin_builder()
+ {
+ ralloc_free(mem_ctx);
++ mem_ctx = NULL;
+ }
+
+ ir_function_signature *