diff --git a/src/d3d11/d3d11_query.h b/src/d3d11/d3d11_query.h index 10af357c8..ba6317ebe 100644 --- a/src/d3d11/d3d11_query.h +++ b/src/d3d11/d3d11_query.h @@ -73,6 +73,8 @@ namespace dxvk { static HRESULT ValidateDesc(const D3D11_QUERY_DESC1* pDesc); static ID3D11Predicate* AsPredicate(ID3D11Query* pQuery) { + // ID3D11Predicate and ID3D11Query have the same vtable. This + // saves us some headache in all query-related functions. return static_cast(pQuery); }