From 2c585a722d61257c29eb9160e51b140afb27a928 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Wed, 29 Apr 2015 14:30:22 -0700 Subject: [PATCH] glsl/compiler: Move the error_no_memory stub to standalone_scaffolding.cpp --- src/glsl/standalone_scaffolding.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp index 6033364afc5..6ff9553d6fe 100644 --- a/src/glsl/standalone_scaffolding.cpp +++ b/src/glsl/standalone_scaffolding.cpp @@ -35,6 +35,12 @@ #include "util/ralloc.h" #include "util/strtod.h" +extern "C" void +_mesa_error_no_memory(const char *caller) +{ + fprintf(stderr, "Mesa error: out of memory in %s", caller); +} + void _mesa_warning(struct gl_context *ctx, const char *fmt, ...) { -- 2.30.2