- Timestamp:
- Jun 3, 2010 1:27:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c
r29198 r30011 121 121 { 122 122 CRMuralInfo *mural; 123 int32_t client; 123 124 int pos; 124 125 … … 127 128 crWarning("CRServer: invalid window %d passed to WindowDestroy()", window); 128 129 return; 130 } 131 132 if (cr_server.currentWindow == window) 133 { 134 cr_server.currentWindow = -1; 135 crServerRedirMuralFBO(mural, GL_FALSE); 136 crServerDeleteMuralFBO(mural); 129 137 } 130 138 … … 150 158 if (CR_MAX_WINDOWS==pos) 151 159 { 152 int32_t client;153 154 160 for (client=0; client<cr_server.numClients; ++client) 155 161 { … … 179 185 } 180 186 181 if (cr_server.currentWindow == window) 182 { 183 cr_server.currentWindow = -1; 184 crServerRedirMuralFBO(mural, GL_FALSE); 185 crServerDeleteMuralFBO(mural); 187 /*Make sure this window isn't active in other clients*/ 188 for (client=0; client<cr_server.numClients; ++client) 189 { 190 if (cr_server.clients[client]->currentMural == mural) 191 { 192 cr_server.clients[client]->currentMural = NULL; 193 cr_server.clients[client]->currentWindow = -1; 194 } 186 195 } 187 196
Note:
See TracChangeset
for help on using the changeset viewer.