Gawain: remove PER_THREAD macro

This attempt at TLS was leftover from an earlier prototype. It never worked with Blender's build system, and was defined to just exist, not to actually do anything.
This commit is contained in:
Mike Erwin 2017-03-17 13:50:33 -04:00
parent 2977a8cd21
commit cf62424e47
2 changed files with 2 additions and 6 deletions

View File

@ -22,10 +22,6 @@
#include <assert.h>
#endif
#define PER_THREAD
// #define PER_THREAD __thread
// MSVC uses __declspec(thread) for C code
#define APPLE_LEGACY (defined(__APPLE__) && defined(WITH_GL_PROFILE_COMPAT))
#if APPLE_LEGACY

View File

@ -51,8 +51,8 @@ typedef struct {
// size of internal buffer -- make this adjustable?
#define IMM_BUFFER_SIZE (4 * 1024 * 1024)
static PER_THREAD bool initialized = false;
static PER_THREAD Immediate imm;
static bool initialized = false;
static Immediate imm;
void immInit(void)
{