1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-19 05:52:11 +01:00

[d3d9] Fix likeliness in GetStreamSource

This commit is contained in:
Joshua Ashton 2020-02-14 17:21:52 +00:00
parent 2096a95262
commit cad3b69e82

View File

@ -2827,10 +2827,10 @@ namespace dxvk {
InitReturnPtr(ppStreamData);
if (unlikely(pOffsetInBytes != nullptr))
if (likely(pOffsetInBytes != nullptr))
*pOffsetInBytes = 0;
if (unlikely(pStride != nullptr))
if (likely(pStride != nullptr))
*pStride = 0;
if (unlikely(ppStreamData == nullptr || pOffsetInBytes == nullptr || pStride == nullptr))