Changeset 21990 in vbox for trunk/src/VBox/HostServices/SharedOpenGL
- Timestamp:
- Aug 5, 2009 12:28:09 PM (15 years ago)
- Location:
- trunk/src/VBox/HostServices/SharedOpenGL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r21624 r21990 70 70 71 71 static const char* gszVBoxOGLSSMMagic = "***OpenGL state data***"; 72 #define SHCROGL_SSM_VERSION 372 #define SHCROGL_SSM_VERSION 4 73 73 74 74 typedef struct … … 207 207 rc = SSMR3GetU32(pSSM, &ui32); 208 208 AssertRCReturn(rc, rc); 209 if (SHCROGL_SSM_VERSION != ui32) 209 if ((SHCROGL_SSM_VERSION != ui32) 210 && (3 != ui32)) 210 211 return VERR_SSM_UNSUPPORTED_DATA_UNIT_VERSION; 211 212 212 213 /* The state itself */ 213 rc = crVBoxServerLoadState(pSSM );214 rc = crVBoxServerLoadState(pSSM, ui32); 214 215 AssertRCReturn(rc, rc); 215 216 -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_main.c
r21523 r21990 709 709 AssertRCReturn(rc, rc); 710 710 711 rc = SSMR3PutU32(pSSM, pClient->conn->vMajor); 712 AssertRCReturn(rc, rc); 713 714 rc = SSMR3PutU32(pSSM, pClient->conn->vMinor); 715 AssertRCReturn(rc, rc); 716 711 717 rc = SSMR3PutMem(pSSM, pClient, sizeof(*pClient)); 712 718 AssertRCReturn(rc, rc); … … 735 741 } 736 742 737 DECLEXPORT(int32_t) crVBoxServerLoadState(PSSMHANDLE pSSM )743 DECLEXPORT(int32_t) crVBoxServerLoadState(PSSMHANDLE pSSM, uint32_t version) 738 744 { 739 745 int32_t rc, i; … … 859 865 /* If this assert fires, then we should search correct client in the list first*/ 860 866 CRASSERT(ui == pClient->conn->u32ClientID); 867 868 if (version>=4) 869 { 870 rc = SSMR3GetU32(pSSM, &pClient->conn->vMajor); 871 AssertRCReturn(rc, rc); 872 873 rc = SSMR3GetU32(pSSM, &pClient->conn->vMinor); 874 AssertRCReturn(rc, rc); 875 } 861 876 862 877 rc = SSMR3GetMem(pSSM, &client, sizeof(client));
Note:
See TracChangeset
for help on using the changeset viewer.