fixed non-threaded codepath
authorDaniel Borca <dborca@users.sourceforge.net>
Mon, 5 Jul 2004 06:15:37 +0000 (06:15 +0000)
committerDaniel Borca <dborca@users.sourceforge.net>
Mon, 5 Jul 2004 06:15:37 +0000 (06:15 +0000)
src/mesa/glapi/glapi.c

index 1f640e3e10e05b66cf72dc32389167a98a48951f..4c005a9d0cbbf89b829c82899334c357f750badd 100644 (file)
@@ -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;