Changeset 51094 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Apr 17, 2014 7:29:14 AM (11 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL/crserverlib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r51089 r51094 158 158 tearingdown = 1; 159 159 160 if (cr_server. DisableData.hNotifyTerm)160 if (cr_server.fCrCmdEnabled) 161 161 { 162 162 VBOXCRCMDCTL_HGCMENABLE_DATA EnableData; 163 int rc = cr_server.DisableData.pfnNotifyTerm(cr_server.DisableData.hNotifyTerm, &EnableData); 163 /* crVBoxServerHgcmEnable will erase the DisableData, preserve it here */ 164 VBOXCRCMDCTL_HGCMDISABLE_DATA DisableData = cr_server.DisableData; 165 int rc; 166 167 CRASSERT(DisableData.pfnNotifyTerm); 168 rc = DisableData.pfnNotifyTerm(DisableData.hNotifyTerm, &EnableData); 164 169 if (!RT_SUCCESS(rc)) 165 170 { … … 175 180 } 176 181 177 cr_server.DisableData.pfnNotifyTermDone(cr_server.DisableData.hNotifyTerm); 182 CRASSERT(DisableData.pfnNotifyTermDone); 183 DisableData.pfnNotifyTermDone(DisableData.hNotifyTerm); 184 185 Assert(!cr_server.fCrCmdEnabled); 178 186 } 179 187 … … 4230 4238 crVBoxServerDefaultContextSet(); 4231 4239 4240 memset(&cr_server.DisableData, 0, sizeof (cr_server.DisableData)); 4241 4232 4242 return VINF_SUCCESS; 4233 4243 } -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_presenter.cpp
r51078 r51094 4898 4898 if (!hFb) 4899 4899 { 4900 WARN(("request to present on disabled framebuffer, ignore"));4900 LOG(("request to present on disabled framebuffer, ignore")); 4901 4901 return 0; 4902 4902 }
Note:
See TracChangeset
for help on using the changeset viewer.