mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 00:00:11 +01:00
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:
parent
6ef37f71b0
commit
ab097dde0c
1 changed files with 1 additions and 1 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue