Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/doitsujin/dxvk.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/d3d11/d3d11_context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/d3d11/d3d11_context.h b/src/d3d11/d3d11_context.h
index 618c07d6..7383507f 100644
--- a/src/d3d11/d3d11_context.h
+++ b/src/d3d11/d3d11_context.h
@@ -1130,7 +1130,7 @@ namespace dxvk {
if (likely(pBuffer != nullptr))
bufferSize = static_cast<D3D11Buffer*>(pBuffer)->Desc()->ByteWidth;
- return bufferSize >= Offset + Size;
+ return uint64_t(bufferSize) >= uint64_t(Offset) + uint64_t(Size);
}
private: