Changeset 86841 in vbox for trunk/src/VBox/Devices
- Timestamp:
- Nov 9, 2020 11:37:48 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA-cmd.cpp
r86840 r86841 277 277 278 278 #if !defined(VMSVGA3D_DX) 279 # ifdef VBOX_WITH_VMSVGA3D 279 280 /* 280 281 * Stubs for old backends. … … 303 304 return VERR_NOT_IMPLEMENTED; 304 305 } 306 # endif 305 307 #endif 306 308 … … 326 328 327 329 /* Verify and normalize the ptDepth value. */ 328 if (RT_LIKELY(ptDepth >= SVGA3D_MOBFMT_PTDEPTH64_0 && ptDepth <= SVGA3D_MOBFMT_PTDEPTH64_2)) 330 if (RT_LIKELY( ptDepth == SVGA3D_MOBFMT_PTDEPTH64_0 331 || ptDepth == SVGA3D_MOBFMT_PTDEPTH64_1 332 || ptDepth == SVGA3D_MOBFMT_PTDEPTH64_2)) 329 333 ASSERT_GUEST_RETURN(fGCPhys64, VERR_INVALID_PARAMETER); 330 else if (ptDepth >= SVGA3D_MOBFMT_PTDEPTH_0 && ptDepth <= SVGA3D_MOBFMT_PTDEPTH_2) 334 else if ( ptDepth == SVGA3D_MOBFMT_PTDEPTH_0 335 || ptDepth == SVGA3D_MOBFMT_PTDEPTH_1 336 || ptDepth == SVGA3D_MOBFMT_PTDEPTH_2) 331 337 { 332 338 ASSERT_GUEST_RETURN(!fGCPhys64, VERR_INVALID_PARAMETER);
Note:
See TracChangeset
for help on using the changeset viewer.