aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/glsl/glsl_parser_extras.cpp
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2011-02-02 07:04:22 +0000
committermarha <marha@users.sourceforge.net>2011-02-02 07:04:22 +0000
commit60107fb2d201703dba061622101dafc139559bca (patch)
treeaf6428702dda8e5036a563b2f8d5c8efee603c48 /mesalib/src/glsl/glsl_parser_extras.cpp
parent0bf07d32cbd460220c67d726900772cf3692746d (diff)
downloadvcxsrv-60107fb2d201703dba061622101dafc139559bca.tar.gz
vcxsrv-60107fb2d201703dba061622101dafc139559bca.tar.bz2
vcxsrv-60107fb2d201703dba061622101dafc139559bca.zip
libX11 mesalib git update 2 Feb 2011
Diffstat (limited to 'mesalib/src/glsl/glsl_parser_extras.cpp')
-rw-r--r--mesalib/src/glsl/glsl_parser_extras.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesalib/src/glsl/glsl_parser_extras.cpp b/mesalib/src/glsl/glsl_parser_extras.cpp
index 2ed8b843a..1fa209c03 100644
--- a/mesalib/src/glsl/glsl_parser_extras.cpp
+++ b/mesalib/src/glsl/glsl_parser_extras.cpp
@@ -97,7 +97,7 @@ _mesa_glsl_parse_state::_mesa_glsl_parse_state(struct gl_context *ctx,
? 100 : 110;
const unsigned highest_version =
(ctx->API == API_OPENGL) ? ctx->Const.GLSLVersion : 100;
- char *supported = (char *) ralloc_context(this);
+ char *supported = ralloc_strdup(this, "");
for (unsigned ver = lowest_version; ver <= highest_version; ver += 10) {
const char *const prefix = (ver == lowest_version)