Changeset 2970 for trunk/src/opengl
- Timestamp:
- Mar 2, 2000, 2:27:30 PM (25 years ago)
- Location:
- trunk/src/opengl/mesa
- Files:
-
- 4 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 jeroenExp $ */1 /* $Id: context.c,v 1.3 2000-03-02 13:27:30 sandervl Exp $ */ 2 2 3 3 /* … … 149 149 #include "mthreads.h" /* Mesa platform independent threads interface*/ 150 150 151 #ifdef __WIN32OS2__ 152 //SvL: Initialize this struct 153 static MesaTSD mesa_ctx_tsd = {-1, -1}; 154 #else 151 155 static MesaTSD mesa_ctx_tsd; 156 #endif 152 157 153 158 static void mesa_ctx_thread_init() { … … 156 161 157 162 GLcontext *gl_get_thread_context( void ) { 163 #ifdef __WIN32OS2__ 164 return (GLcontext *) MesaGetTSD(&mesa_ctx_tsd, mesa_ctx_thread_init); 165 #else 158 166 return (GLcontext *) MesaGetTSD(&mesa_ctx_tsd); 167 #endif 159 168 } 160 169 -
trunk/src/opengl/mesa/context.h
r2962 r2970 1 /* $Id: context.h,v 1. 2 2000-03-01 18:49:25 jeroenExp $ */1 /* $Id: context.h,v 1.3 2000-03-02 13:27:30 sandervl Exp $ */ 2 2 3 3 /* … … 33 33 34 34 35 /* #include "types.h" */ 35 #include "types.h" 36 36 37 37 #ifdef THREADS -
trunk/src/opengl/mesa/mthreads.h
r2938 r2970 1 /* $Id: mthreads.h,v 1. 1 2000-02-29 00:48:34sandervl Exp $ */1 /* $Id: mthreads.h,v 1.2 2000-03-02 13:27:30 sandervl Exp $ */ 2 2 3 3 /* … … 127 127 #if defined(WIN32) || defined(__WIN32OS2__) 128 128 129 #ifdef __WIN32OS2__130 #include <os2win.h>131 #else132 129 #include <windows.h> 133 #endif134 130 135 131 typedef struct { … … 150 146 */ 151 147 void MesaInitTSD(MesaTSD *); 148 149 #ifdef __WIN32OS2__ 150 void *MesaGetTSD (MesaTSD * tsd, void (*initfunc)(void)) ; 151 #else 152 152 void* MesaGetTSD (MesaTSD *); 153 #endif 153 154 void MesaSetTSD (MesaTSD *, void *, void (*initfunc)(void)); 154 155 -
trunk/src/opengl/mesa/osmesa.c
r2962 r2970 1 /* $Id: osmesa.c,v 1. 1 2000-03-01 18:49:33 jeroenExp $ */1 /* $Id: osmesa.c,v 1.2 2000-03-02 13:27:30 sandervl Exp $ */ 2 2 3 3 /* … … 82 82 83 83 static OSMesaContext osmesa_get_thread_context( void ) { 84 #ifdef __WIN32OS2__ 85 return (OSMesaContext) MesaGetTSD(&osmesa_ctx_tsd, osmesa_ctx_thread_init); 86 #else 84 87 return (OSMesaContext) MesaGetTSD(&osmesa_ctx_tsd); 88 #endif 85 89 } 86 90
Note:
See TracChangeset
for help on using the changeset viewer.