meta: Remove unsafe global mem_ctx pointer

NOTE: This is a candidate for the 9.0 branch.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
This commit is contained in:
Ian Romanick 2012-10-05 15:11:31 -07:00
parent 6ef37f71b0
commit ab097dde0c

View file

@ -78,7 +78,6 @@
#include "main/glformats.h"
#include "../glsl/ralloc.h"
static void *mem_ctx;
/** Return offset in bytes of the field within a vertex struct */
#define OFFSET(FIELD) ((void *) offsetof(struct vertex, FIELD))
@ -3073,6 +3072,7 @@ setup_glsl_generate_mipmap(struct gl_context *ctx,
char *fs_source;
const char *extension_mode;
GLuint vs, fs;
void *mem_ctx;
if (ctx->Const.GLSLVersion < 130) {
vs_source =