diff --git a/src/Nazara/Graphics/BakedFrameGraph.cpp b/src/Nazara/Graphics/BakedFrameGraph.cpp index ade13e28a..f49b5f970 100644 --- a/src/Nazara/Graphics/BakedFrameGraph.cpp +++ b/src/Nazara/Graphics/BakedFrameGraph.cpp @@ -157,7 +157,7 @@ namespace Nz TextureViewInfo textureViewParams; textureViewParams.viewType = textureData.type; textureViewParams.reinterpretFormat = textureData.format; - textureViewParams.baseArrayLayer = textureData.viewData->arrayLayer; + textureViewParams.baseArrayLayer = SafeCast(textureData.viewData->arrayLayer); textureData.texture = parentTexture.texture->CreateView(textureViewParams); } diff --git a/src/Nazara/Widgets/CheckboxWidget.cpp b/src/Nazara/Widgets/CheckboxWidget.cpp index 21fcd3e8a..41c57748a 100644 --- a/src/Nazara/Widgets/CheckboxWidget.cpp +++ b/src/Nazara/Widgets/CheckboxWidget.cpp @@ -59,7 +59,7 @@ namespace Nz // If user clicks inside button and holds it outside, a release mouse button event will be triggered outside of the widget // we don't want this to trigger the button, so double-check - if (IsInside(x, y)) + if (IsInside(float(x), float(y))) SwitchToNextState(); return true;