Ignore:
Timestamp:
Mar 2, 2000, 2:27:30 PM (25 years ago)
Author:
sandervl
Message:

Reapplied TLS fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/opengl/mesa/context.c

    r2962 r2970  
    1 /* $Id: context.c,v 1.2 2000-03-01 18:49:25 jeroen Exp $ */
     1/* $Id: context.c,v 1.3 2000-03-02 13:27:30 sandervl Exp $ */
    22
    33/*
     
    149149#include "mthreads.h"        /* Mesa platform independent threads interface*/
    150150
     151#ifdef __WIN32OS2__
     152//SvL: Initialize this struct
     153static MesaTSD mesa_ctx_tsd = {-1, -1};
     154#else
    151155static MesaTSD mesa_ctx_tsd;
     156#endif
    152157
    153158static void mesa_ctx_thread_init() {
     
    156161
    157162GLcontext *gl_get_thread_context( void ) {
     163#ifdef __WIN32OS2__
     164  return (GLcontext *) MesaGetTSD(&mesa_ctx_tsd, mesa_ctx_thread_init);
     165#else
    158166  return (GLcontext *) MesaGetTSD(&mesa_ctx_tsd);
     167#endif
    159168}
    160169
Note: See TracChangeset for help on using the changeset viewer.