diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2009-02-10 14:03:43 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2009-02-10 14:03:43 +0000 |
commit | a88e2544eeb0a93b23ab2383905fef44c056040c (patch) | |
tree | beea0370d3047dc0ed8ffe2a8b7bb27cef84bbce /src | |
parent | 96fb896c3916053c5b3b67c4f51911d718aef2d4 (diff) | |
download | external_mesa3d-a88e2544eeb0a93b23ab2383905fef44c056040c.zip external_mesa3d-a88e2544eeb0a93b23ab2383905fef44c056040c.tar.gz external_mesa3d-a88e2544eeb0a93b23ab2383905fef44c056040c.tar.bz2 |
vmw/icd: remove bogus current_context value
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/state_trackers/wgl/icd/stw_icd.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/state_trackers/wgl/icd/stw_icd.c b/src/gallium/state_trackers/wgl/icd/stw_icd.c index 70e346a..e160004 100644 --- a/src/gallium/state_trackers/wgl/icd/stw_icd.c +++ b/src/gallium/state_trackers/wgl/icd/stw_icd.c @@ -44,8 +44,6 @@ struct stw_icd struct { struct stw_context *ctx; } ctx_array[DRV_CONTEXT_MAX]; - - DHGLRC ctx_current; }; @@ -232,9 +230,10 @@ DrvReleaseContext( { struct stw_context *ctx; - if (dhglrc != stw_icd->ctx_current) - goto fail; - + /* XXX: The expectation is that ctx is the same context which is + * current for this thread. We should check that and return False + * if not the case. + */ ctx = lookup_context( dhglrc ); if (ctx == NULL) goto fail; @@ -242,7 +241,6 @@ DrvReleaseContext( if (stw_make_current( NULL, NULL ) == FALSE) goto fail; - stw_icd->ctx_current = 0; return TRUE; fail: |