Changeset 73283 in vbox for trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
- Timestamp:
- Jul 20, 2018 9:27:15 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Graphics/DevVGA-SVGA3d-ogl.cpp
r73238 r73283 1936 1936 int vmsvga3dSurfaceCopy(PVGASTATE pThis, SVGA3dSurfaceImageId dest, SVGA3dSurfaceImageId src, uint32_t cCopyBoxes, SVGA3dCopyBox *pBox) 1937 1937 { 1938 PVMSVGA3DSTATE pState = pThis->svga.p3dState;1939 uint32_t sidSrc = src.sid;1940 uint32_t sidDest = dest.sid;1941 int rc = VINF_SUCCESS;1942 1943 AssertReturn(pState, VERR_NO_MEMORY);1944 Assert(sidSrc < SVGA3D_MAX_SURFACE_IDS);1945 AssertReturn(sidSrc < pState->cSurfaces && pState->papSurfaces[sidSrc]->id == sidSrc, VERR_INVALID_PARAMETER);1946 Assert(sidDest < SVGA3D_MAX_SURFACE_IDS);1947 AssertReturn(sidDest < pState->cSurfaces && pState->papSurfaces[sidDest]->id == sidDest, VERR_INVALID_PARAMETER);1948 1949 1938 for (uint32_t i = 0; i < cCopyBoxes; i++) 1950 1939 { … … 1965 1954 destBox.d = pBox[i].d; 1966 1955 1967 rc = vmsvga3dSurfaceStretchBlt(pThis, &dest, &destBox, &src, &srcBox, SVGA3D_STRETCH_BLT_LINEAR);1956 int rc = vmsvga3dSurfaceStretchBlt(pThis, &dest, &destBox, &src, &srcBox, SVGA3D_STRETCH_BLT_LINEAR); 1968 1957 AssertRCReturn(rc, rc); 1969 1958 } … … 2206 2195 VMSVGA3D_CHECK_LAST_ERROR(pState, pContext); 2207 2196 2208 Log(("src conv. (%d,%d)(%d,%d); dest conv (%d,%d)(%d,%d)\n", pSrcBox->x, D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y + pSrcBox->h), 2209 pSrcBox->x + pSrcBox->w, D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y), pDstBox->x, D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y + pDstBox->h), 2197 Log(("src conv. (%d,%d)(%d,%d); dest conv (%d,%d)(%d,%d)\n", 2198 pSrcBox->x, D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y + pSrcBox->h), 2199 pSrcBox->x + pSrcBox->w, D3D_TO_OGL_Y_COORD(pSrcSurface, pSrcBox->y), 2200 pDstBox->x, D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y + pDstBox->h), 2210 2201 pDstBox->x + pDstBox->w, D3D_TO_OGL_Y_COORD(pDstSurface, pDstBox->y))); 2211 2202 … … 5296 5287 5297 5288 case SVGA3D_TS_TEXTURE_MIPMAP_LEVEL: /* uint32_t */ 5298 textureType = GL_TEXTURE_ MAX_LEVEL;5289 textureType = GL_TEXTURE_BASE_LEVEL; 5299 5290 val = pTextureState[i].value; 5300 5291 break;
Note:
See TracChangeset
for help on using the changeset viewer.