diff options
author | Daniel Borca <[email protected]> | 2004-07-05 06:15:37 +0000 |
---|---|---|
committer | Daniel Borca <[email protected]> | 2004-07-05 06:15:37 +0000 |
commit | fd003824ad18fd78cbecf32fb5e8e58cf2f9cdba (patch) | |
tree | 7c3d7b002b3ea65fdf4af0837dcb0ab229443b7c /src/mesa | |
parent | 3e77737955104879ca8747f82bdd5fd5b0169cc1 (diff) |
fixed non-threaded codepath
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/glapi/glapi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 1f640e3e10e..4c005a9d0cb 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -628,7 +628,11 @@ generate_entrypoint(GLuint functionOffset) if (code) { memcpy(code, insn_template, sizeof(insn_template)); +#if defined( THREADS ) *(unsigned int *)(code + 0x01) = (unsigned int)&_glapi_DispatchTSD; +#else + *(unsigned int *)(code + 0x01) = (unsigned int)&_glapi_Dispatch; +#endif *(unsigned int *)(code + 0x0b) = (unsigned int)functionOffset * 4; next_insn = (unsigned int)(code + 0x14); *(unsigned int *)(code + 0x10) = (unsigned int)_glapi_get_dispatch - next_insn; |