X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=helpers%2Fd3dcommonsize.hpp;h=b1f7b284d024001b83d444db5b00900fc98c4859;hb=HEAD;hp=d4c486277ca0f84ad69fb045a09a0057a5f40472;hpb=fc550c52a09230de93a68dd599cd95d4f6f30c4c;p=apitrace diff --git a/helpers/d3dcommonsize.hpp b/helpers/d3dcommonsize.hpp index d4c4862..b1f7b28 100644 --- a/helpers/d3dcommonsize.hpp +++ b/helpers/d3dcommonsize.hpp @@ -163,6 +163,7 @@ _getLockSize(D3DFORMAT Format, UINT Width, UINT Height, INT RowPitch, UINT Depth #if DIRECT3D_VERSION >= 0x900 case D3DFMT_NV12: + case D3DFMT_YV12: return (Height + ((Height + 1) / 2)) * RowPitch; case D3DFMT_NULL: