mesa: Less FEATURE_ARB_sync tests.

Add dummy static inline definitions to syncobj.h when FEATURE_ARB_sync
is 0, and remove most FEATURE_ARB_sync tests.
This commit is contained in:
Chia-I Wu
2010-09-13 13:35:12 +08:00
parent db6273e0dd
commit 10ff2646a4
5 changed files with 60 additions and 25 deletions

View File

@@ -40,9 +40,7 @@
#include "program/program.h"
#include "dlist.h"
#include "shaderobj.h"
#if FEATURE_ARB_sync
#include "syncobj.h"
#endif
/**
* Allocate and initialize a shared context state structure.
@@ -122,9 +120,7 @@ _mesa_alloc_shared_state(GLcontext *ctx)
shared->RenderBuffers = _mesa_NewHashTable();
#endif
#if FEATURE_ARB_sync
make_empty_list(& shared->SyncObjects);
#endif
return shared;
}
@@ -337,7 +333,6 @@ free_shared_state(GLcontext *ctx, struct gl_shared_state *shared)
_mesa_reference_buffer_object(ctx, &shared->NullBufferObj, NULL);
#endif
#if FEATURE_ARB_sync
{
struct simple_node *node;
struct simple_node *temp;
@@ -346,7 +341,6 @@ free_shared_state(GLcontext *ctx, struct gl_shared_state *shared)
_mesa_unref_sync_object(ctx, (struct gl_sync_object *) node);
}
}
#endif
/*
* Free texture objects (after FBOs since some textures might have