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:
parent
2977a8cd21
commit
cf62424e47
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue