VirtualBox

Changeset 81205 in vbox


Ignore:
Timestamp:
Oct 10, 2019 10:25:44 AM (5 years ago)
Author:
vboxsync
Message:

VMSVGA: Ignore invalid SVGA_3D_CMD_SETLIGHTENABLED, bugref:9583

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp

    r81080 r81205  
    47584758
    47594759    Log(("vmsvga3dSetLightEnabled %x %d -> %d\n", cid, index, enabled));
     4760    AssertReturn(index < SVGA3D_MAX_LIGHTS, VERR_INVALID_PARAMETER);
    47604761
    47614762    int rc = vmsvga3dContextFromCid(pState, cid, &pContext);
     
    47634764
    47644765    /* Store for vm state save/restore */
    4765     if (index < SVGA3D_MAX_LIGHTS)
    4766         pContext->state.aLightData[index].fEnabled = !!enabled;
    4767     else
    4768         AssertFailed();
     4766    pContext->state.aLightData[index].fEnabled = !!enabled;
    47694767
    47704768    hr = pContext->pDevice->LightEnable(index, (BOOL)enabled);
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