- Timestamp:
- Jul 10, 2019 10:40:53 AM (6 years ago)
- Location:
- trunk/src/VBox/Devices/Graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r78593 r79668 33 33 #include <VBox/log.h> 34 34 #include <VBox/vmm/pgm.h> 35 #include <VBox/AssertGuest.h> 35 36 36 37 #include <iprt/assert.h> … … 3342 3343 return VERR_INVALID_PARAMETER; 3343 3344 } 3345 3346 ASSERT_GUEST_RETURN((unsigned)type < SVGA3D_TRANSFORM_MAX, VERR_INVALID_PARAMETER); 3347 3344 3348 pContext = pState->papContexts[cid]; 3345 3349 VMSVGA3D_SET_CURRENT_CONTEXT(pState, pContext); … … 3592 3596 return VERR_INVALID_PARAMETER; 3593 3597 } 3598 3594 3599 pContext = pState->papContexts[cid]; 3595 3600 VMSVGA3D_SET_CURRENT_CONTEXT(pState, pContext); … … 3600 3605 Log(("vmsvga3dSetRenderState: cid=%x state=%s (%d) val=%x\n", cid, vmsvga3dGetRenderStateName(pRenderState[i].state), pRenderState[i].state, pRenderState[i].uintValue)); 3601 3606 /* Save the render state for vm state saving. */ 3602 if (pRenderState[i].state < SVGA3D_RS_MAX)3603 3607 ASSERT_GUEST_RETURN((unsigned)pRenderState[i].state < SVGA3D_RS_MAX, VERR_INVALID_PARAMETER); 3608 pContext->state.aRenderState[pRenderState[i].state] = pRenderState[i]; 3604 3609 3605 3610 switch (pRenderState[i].state) -
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-win.cpp
r78589 r79668 26 26 #include <VBox/log.h> 27 27 #include <VBox/vmm/pgm.h> 28 #include <VBox/AssertGuest.h> 28 29 29 30 #include <iprt/assert.h> … … 3054 3055 Log(("vmsvga3dSetTransform %x %s\n", cid, vmsvgaTransformToString(type))); 3055 3056 3057 ASSERT_GUEST_RETURN((unsigned)type < SVGA3D_TRANSFORM_MAX, VERR_INVALID_PARAMETER); 3058 3056 3059 if ( cid >= pState->cContexts 3057 3060 || pState->papContexts[cid]->id != cid) … … 3226 3229 Log(("vmsvga3dSetRenderState: state=%s (%d) val=%x\n", vmsvga3dGetRenderStateName(pRenderState[i].state), pRenderState[i].state, pRenderState[i].uintValue)); 3227 3230 /* Save the render state for vm state saving. */ 3228 if (pRenderState[i].state < SVGA3D_RS_MAX)3229 3231 ASSERT_GUEST_RETURN((unsigned)pRenderState[i].state < SVGA3D_RS_MAX, VERR_INVALID_PARAMETER); 3232 pContext->state.aRenderState[pRenderState[i].state] = pRenderState[i]; 3230 3233 3231 3234 switch (pRenderState[i].state)
Note:
See TracChangeset
for help on using the changeset viewer.