From fa8b6231531f2d87fa6943d59849445f82de89bc Mon Sep 17 00:00:00 2001 From: Bram Oosterhuis Date: Thu, 17 Oct 2024 20:17:03 +0200 Subject: [PATCH] Compositor: fix 64bit cast error from uint32_t to buffer_id (#842) * Compositor: fix 64bit cast error from uint32_t to buffer_id * Update DmaBuffer.h * Update DmaBuffer.h --------- Co-authored-by: MFransen69 <39826971+MFransen69@users.noreply.github.com> --- Compositor/lib/Mesa/renderer/test/texturebuffer/DmaBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Compositor/lib/Mesa/renderer/test/texturebuffer/DmaBuffer.h b/Compositor/lib/Mesa/renderer/test/texturebuffer/DmaBuffer.h index 223ad44ba..9d3105fbd 100644 --- a/Compositor/lib/Mesa/renderer/test/texturebuffer/DmaBuffer.h +++ b/Compositor/lib/Mesa/renderer/test/texturebuffer/DmaBuffer.h @@ -21,7 +21,7 @@ namespace Compositor { Exchange::ICompositionBuffer::buffer_id Accessor() const override { - return reinterpret_cast(_source.Identifier()); + return static_cast(_source.Identifier()); } uint32_t Stride() const override