Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dreveman:openSUSE:11.1:cr
cr
cr-server-destroy-context-fix.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cr-server-destroy-context-fix.diff of Package cr
commit 9e9f2ea6f55d3e56f4b9ecaf2f56a83480714dd3 Author: David Reveman <davidr@novell.com> Date: Wed Apr 15 07:55:55 2009 -0400 Default back to the null context for all clients that have context being destroyed current. diff --git a/crserverlib/server_context.c b/crserverlib/server_context.c index 50446a3..3420a23 100644 --- a/crserverlib/server_context.c +++ b/crserverlib/server_context.c @@ -131,7 +131,7 @@ void SERVER_DISPATCH_APIENTRY crServerDispatchDestroyContext( GLint ctx ) { CRContext *crCtx; - int SpuContext; + int SpuContext, i; crCtx = (CRContext *) crHashtableSearch(cr_server.contextTable, ctx); if (!crCtx) { @@ -143,9 +143,12 @@ crServerDispatchDestroyContext( GLint ctx ) crStateDestroyContext( crCtx ); /* If we delete our current context, default back to the null context */ - if (cr_server.curClient->currentCtx == crCtx) { - cr_server.curClient->currentContextNumber = -1; - cr_server.curClient->currentCtx = cr_server.DummyContext; + for (i = 0; i < cr_server.numClients; i++) { + if (cr_server.clients[i]->currentCtx == crCtx) { + cr_server.clients[i]->currentContextNumber = -1; + cr_server.clients[i]->currentCtx = + cr_server.DummyContext; + } } SpuContext = (int) crHashtableSearch(cr_server.SpuContextTable, ctx);
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor