VirtualBox

Changes between Initial Version and Version 1 of Ticket #10126, comment 4


Ignore:
Timestamp:
Jan 23, 2012 10:31:12 AM (12 years ago)
Author:
Michael P.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10126, comment 4

    initial v1  
    11OpenGL Error: Assertion failed: ptl->bytes, file /home/vbox/vbox-4.1.8/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c, line 188
    22
    3 I don't know if this is the right version of the file, but anyway:
    4 http://fossies.org/linux/misc/VirtualBox-4.1.8.tar.gz/dox/state__snapshot_8c_source.html
    5 
     3See the file:
     4https://www.virtualbox.org/browser/trunk/src/VBox/GuestHost/OpenGL/state_tracker/state_snapshot.c
    65
    76{{{
    8 0171 static int32_t crStateLoadTextureObjData(CRTextureObj *pTexture, PSSMHANDLE pSSM)
    9 00172 {
    10 00173     int32_t rc, face, i;
    11 00174     
    12 00175     CRASSERT(pTexture && pSSM);
    13 00176
    14 00177     for (face = 0; face < 6; face++) {
    15 00178         CRASSERT(pTexture->level[face]);
    16 00179
    17 00180         for (i = 0; i < CR_MAX_MIPMAP_LEVELS; i++) {
    18 00181             CRTextureLevel *ptl = &(pTexture->level[face][i]);
    19 00182             CRASSERT(!ptl->img);
    20 00183
    21 00184             rc = SSMR3GetMem(pSSM, ptl, sizeof(*ptl));
    22 00185             AssertRCReturn(rc, rc);
    23 00186             if (ptl->img)
    24 00187             {
    25 00188                 CRASSERT(ptl->bytes);
    26 00189
    27 00190                 ptl->img = crAlloc(ptl->bytes);
    28 00191                 if (!ptl->img) return VERR_NO_MEMORY;
    29 00192
    30 00193                 rc = SSMR3GetMem(pSSM, ptl->img, ptl->bytes);
    31 00194                 AssertRCReturn(rc, rc);
    32 00195             }
    33 00196 #ifdef CR_STATE_NO_TEXTURE_IMAGE_STORE
    34 00197             /* Same story as in crStateSaveTextureObjData */
    35 00198             else if (ptl->bytes)
    36 00199             {
     7171     static int32_t crStateLoadTextureObjData(CRTextureObj *pTexture, PSSMHANDLE pSSM)
     8172     {
     9173         int32_t rc, face, i;
     10174        
     11175         CRASSERT(pTexture && pSSM);
     12176     
     13177         for (face = 0; face < 6; face++) {
     14178             CRASSERT(pTexture->level[face]);
     15179     
     16180             for (i = 0; i < CR_MAX_MIPMAP_LEVELS; i++) {
     17181                 CRTextureLevel *ptl = &(pTexture->level[face][i]);
     18182                 CRASSERT(!ptl->img);
     19183     
     20184                 rc = SSMR3GetMem(pSSM, ptl, sizeof(*ptl));
     21185                 AssertRCReturn(rc, rc);
     22186                 if (ptl->img)
     23187                 {
     24188                     CRASSERT(ptl->bytes);
     25189     
     26190                     ptl->img = crAlloc(ptl->bytes);
     27191                     if (!ptl->img) return VERR_NO_MEMORY;
     28192     
     29193                     rc = SSMR3GetMem(pSSM, ptl->img, ptl->bytes);
     30194                     AssertRCReturn(rc, rc);
     31195                 }
     32196     #ifdef CR_STATE_NO_TEXTURE_IMAGE_STORE
     33197                 /* Same story as in crStateSaveTextureObjData */
     34198                 else if (ptl->bytes)
     35199                 {
    3736}}}

© 2023 Oracle
ContactPrivacy policyTerms of Use