31
31
#include "glxserver.h"
32
#include <GL/glxtokens.h>
33
#include <pixmapstr.h>
34
#include <windowstr.h>
35
32
#include "glxutil.h"
38
/************************************************************************/
40
34
void __glXNop(void) {}
42
/************************************************************************/
44
/* Memory Allocation for GLX */
47
__glXMalloc(size_t size)
56
/* XXX: handle out of memory error */
63
__glXCalloc(size_t numElements, size_t elementSize)
68
if ((numElements == 0) || (elementSize == 0)) {
71
addr = calloc(numElements, elementSize);
73
/* XXX: handle out of memory error */
80
__glXRealloc(void *addr, size_t newSize)
89
newAddr = realloc(addr, newSize);
95
newAddr = malloc(newSize);
98
if (newAddr == NULL) {
99
return NULL; /* XXX: out of memory */
106
__glXFree(void *addr)