VirtualBox

Changeset 41139 in vbox


Ignore:
Timestamp:
May 3, 2012 3:19:50 PM (13 years ago)
Author:
vboxsync
Message:

crOpenGL: prevent null window size handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/server_window.c

    r38245 r41139  
    258258         return;
    259259    }
     260
    260261    mural->width = width;
    261262    mural->height = height;
     
    264265    crStateGetCurrent()->buffer.height = mural->height;
    265266
     267    if (!width || !height)
     268    {
     269        crServerDispatchWindowVisibleRegion(window, 0, NULL);
     270        return;
     271    }
     272
    266273    crServerCheckMuralGeometry(mural);
    267274
     
    283290    mural->gX = x;
    284291    mural->gY = y;
     292
     293    if (!mural->width || !mural->height)
     294        return;
    285295
    286296    crServerCheckMuralGeometry(mural);
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette