Skip to content

Commit

Permalink
Compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-cojocaru committed Jan 6, 2025
1 parent fd10156 commit 08a0804
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/mbgl/vulkan/buffer_resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ BufferResource::BufferResource(BufferResource&& other) noexcept
: context(other.context),
size(other.size),
usage(other.usage),
version(other.version),
persistent(other.persistent),
bufferAllocation(std::move(other.bufferAllocation)),
bufferWindowSize(other.bufferWindowSize),
version(other.version),
bufferWindowVersions(std::move(other.bufferWindowVersions)) {
other.bufferAllocation = nullptr;
}
Expand Down
4 changes: 2 additions & 2 deletions src/mbgl/vulkan/renderer_backend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -232,13 +232,13 @@ void RendererBackend::endFrameCapture() {
#endif
}

void RendererBackend::setFrameCaptureLoop(bool value) {
void RendererBackend::setFrameCaptureLoop([[maybe_unused]] bool value) {
#ifdef ENABLE_RENDERDOC_FRAME_CAPTURE
g_rdoc.loop = value;
#endif
}

void RendererBackend::triggerFrameCapture(uint32_t frameCount, uint32_t frameDelay) {
void RendererBackend::triggerFrameCapture([[maybe_unused]] uint32_t frameCount, [[maybe_unused]] uint32_t frameDelay) {
#ifdef ENABLE_RENDERDOC_FRAME_CAPTURE
if (!g_rdoc.api) {
return;
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/vulkan/upload_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ static const std::unique_ptr<gfx::VertexBufferResource> noBuffer;

const gfx::UniqueVertexBufferResource& UploadPass::getBuffer(const gfx::VertexVectorBasePtr& vec,
const gfx::BufferUsageType usage,
bool forceUpdate) {
[[maybe_unused]] bool forceUpdate) {
if (vec) {
const auto* rawBufPtr = vec->getRawData();
const auto rawBufSize = vec->getRawCount() * vec->getRawSize();
Expand Down

0 comments on commit 08a0804

Please sign in to comment.