summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glapi_entrypoint.c
diff options
context:
space:
mode:
authorGeorge Sapountzis <gsapountzis@gmail.com>2010-03-11 18:04:03 +0200
committerGeorge Sapountzis <gsapountzis@gmail.com>2010-03-14 22:24:27 +0200
commit41eab95b3bc29a4fe6fd08b7f1f80cef5bdc097f (patch)
tree3e8bab4e5106a29643099b24ae31a108995df7be /src/mesa/glapi/glapi_entrypoint.c
parent8fd7ee1815dd5880f94f13d88225d7be6f549ae6 (diff)
glapi: exec_malloc for dispatch stubs
Diffstat (limited to 'src/mesa/glapi/glapi_entrypoint.c')
-rw-r--r--src/mesa/glapi/glapi_entrypoint.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/glapi/glapi_entrypoint.c b/src/mesa/glapi/glapi_entrypoint.c
index 3256867b16..c4f43f66a1 100644
--- a/src/mesa/glapi/glapi_entrypoint.c
+++ b/src/mesa/glapi/glapi_entrypoint.c
@@ -105,7 +105,7 @@ generate_entrypoint(GLuint functionOffset)
*/
const GLubyte * const template_func = gl_dispatch_functions_start
+ (DISPATCH_FUNCTION_SIZE * 32);
- GLubyte * const code = (GLubyte *) malloc(DISPATCH_FUNCTION_SIZE);
+ GLubyte * const code = (GLubyte *) _glapi_exec_malloc(DISPATCH_FUNCTION_SIZE);
if ( code != NULL ) {
@@ -288,7 +288,7 @@ generate_entrypoint(GLuint functionOffset)
extern unsigned int __glapi_sparc_pthread_stub;
unsigned long call_dest = (unsigned long ) &__glapi_sparc_pthread_stub;
#endif
- unsigned int *code = (unsigned int *) malloc(sizeof(template));
+ unsigned int *code = (unsigned int *) _glapi_exec_malloc(sizeof(template));
if (code) {
code[0] = template[0] | (functionOffset & 0x3fffff);
code[1] = template[1];