|
Lines 101-107
__glXMesaDrawableDestroy(__GLXdrawable *
Link Here
|
| 101 |
{ |
101 |
{ |
| 102 |
__GLXMESAdrawable *glxPriv = (__GLXMESAdrawable *) base; |
102 |
__GLXMESAdrawable *glxPriv = (__GLXMESAdrawable *) base; |
| 103 |
|
103 |
|
| 104 |
XMesaDestroyBuffer(glxPriv->xm_buf); |
104 |
if (glxPriv->xm_buf) |
|
|
105 |
XMesaDestroyBuffer(glxPriv->xm_buf); |
| 105 |
xfree(glxPriv); |
106 |
xfree(glxPriv); |
| 106 |
} |
107 |
} |
| 107 |
|
108 |
|
|
Lines 214-219
__glXMesaContextDestroy(__GLXcontext *ba
Link Here
|
| 214 |
__GLXMESAcontext *context = (__GLXMESAcontext *) baseContext; |
215 |
__GLXMESAcontext *context = (__GLXMESAcontext *) baseContext; |
| 215 |
|
216 |
|
| 216 |
XMesaDestroyContext(context->xmesa); |
217 |
XMesaDestroyContext(context->xmesa); |
|
|
218 |
|
| 219 |
GlxFlushContextCache (); |
| 220 |
|
| 217 |
xfree(context); |
221 |
xfree(context); |
| 218 |
} |
222 |
} |
| 219 |
|
223 |
|
|
Lines 235-240
__glXMesaContextLoseCurrent(__GLXcontext
Link Here
|
| 235 |
{ |
239 |
{ |
| 236 |
__GLXMESAcontext *context = (__GLXMESAcontext *) baseContext; |
240 |
__GLXMESAcontext *context = (__GLXMESAcontext *) baseContext; |
| 237 |
|
241 |
|
|
|
242 |
GlxFlushContextCache (); |
| 243 |
|
| 238 |
return XMesaLoseCurrent(context->xmesa); |
244 |
return XMesaLoseCurrent(context->xmesa); |
| 239 |
} |
245 |
} |
| 240 |
|
246 |
|
|
Lines 255-260
__glXMesaContextForceCurrent(__GLXcontex
Link Here
|
| 255 |
{ |
261 |
{ |
| 256 |
__GLXMESAcontext *context = (__GLXMESAcontext *) baseContext; |
262 |
__GLXMESAcontext *context = (__GLXMESAcontext *) baseContext; |
| 257 |
|
263 |
|
|
|
264 |
GlxSetRenderTables (context->xmesa->mesa.CurrentDispatch); |
| 265 |
|
| 258 |
return XMesaForceCurrent(context->xmesa); |
266 |
return XMesaForceCurrent(context->xmesa); |
| 259 |
} |
267 |
} |
| 260 |
|
268 |
|
|
Lines 383-389
static void init_screen_visuals(__GLXMES
Link Here
|
| 383 |
/* Create the XMesa visual */ |
391 |
/* Create the XMesa visual */ |
| 384 |
pXMesaVisual[i] = |
392 |
pXMesaVisual[i] = |
| 385 |
XMesaCreateVisual(pScreen, |
393 |
XMesaCreateVisual(pScreen, |
| 386 |
pVis, |
394 |
&pVis[j], |
| 387 |
modes->rgbMode, |
395 |
modes->rgbMode, |
| 388 |
(modes->alphaBits > 0), |
396 |
(modes->alphaBits > 0), |
| 389 |
modes->doubleBufferMode, |
397 |
modes->doubleBufferMode, |