Changeset 83513 in vbox
- Timestamp:
- Apr 2, 2020 3:29:09 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136820
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r82968 r83513 5459 5459 5460 5460 LogFunc(("vmsvga3dSetLightData cid=%u index=%d type=%d\n", cid, index, pData->type)); 5461 AssertReturn(index < SVGA3D_MAX_LIGHTS, VERR_INVALID_PARAMETER); 5461 5462 5462 5463 PVMSVGA3DCONTEXT pContext; … … 5467 5468 5468 5469 /* Store for vm state save/restore */ 5469 if (index < SVGA3D_MAX_LIGHTS) 5470 { 5471 pContext->state.aLightData[index].fValidData = true; 5472 pContext->state.aLightData[index].data = *pData; 5473 } 5474 else 5475 AssertFailed(); 5470 pContext->state.aLightData[index].fValidData = true; 5471 pContext->state.aLightData[index].data = *pData; 5476 5472 5477 5473 if ( pData->attenuation0 < 0.0f -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r82968 r83513 4644 4644 4645 4645 Log(("vmsvga3dSetLightData %x index=%d\n", cid, index)); 4646 AssertReturn(index < SVGA3D_MAX_LIGHTS, VERR_INVALID_PARAMETER); 4646 4647 4647 4648 int rc = vmsvga3dContextFromCid(pState, cid, &pContext); … … 4669 4670 4670 4671 /* Store for vm state save/restore */ 4671 if (index < SVGA3D_MAX_LIGHTS) 4672 { 4673 pContext->state.aLightData[index].fValidData = true; 4674 pContext->state.aLightData[index].data = *pData; 4675 } 4676 else 4677 AssertFailed(); 4672 pContext->state.aLightData[index].fValidData = true; 4673 pContext->state.aLightData[index].data = *pData; 4678 4674 4679 4675 light.Diffuse.r = pData->diffuse[0];
Note:
See TracChangeset
for help on using the changeset viewer.