Functions | |
struct gl_shared_state * | _mesa_alloc_shared_state (GLcontext *ctx) |
Allocate and initialize a shared context state structure. | |
void | _mesa_free_shared_state (GLcontext *ctx, struct gl_shared_state *shared) |
Deallocate a shared state object and all children structures. |
struct gl_shared_state* _mesa_alloc_shared_state | ( | GLcontext * | ctx | ) | [read] |
Allocate and initialize a shared context state structure.
Initializes the display list, texture objects and vertex programs hash tables, allocates the texture objects. If it runs out of memory, frees everything already allocated before returning NULL.
void _mesa_free_shared_state | ( | GLcontext * | ctx, | |
struct gl_shared_state * | shared | |||
) |
Deallocate a shared state object and all children structures.
ctx | GL context. | |
shared | shared state pointer. |