Skip to content

Commit

Permalink
Fix some preprocessor cases that don't account for the new Vulkan bac…
Browse files Browse the repository at this point in the history
…kend
  • Loading branch information
mwilsnd committed Sep 11, 2024
1 parent 9caab9b commit c2966b9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/mbgl/shaders/shader_manifest.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#pragma once
#include <mbgl/shaders/shader_source.hpp>

#if !MLN_RENDER_BACKEND_METAL
#if MLN_RENDER_BACKEND_OPENGL
#include <mbgl/shaders/gl/drawable_background.hpp>
#include <mbgl/shaders/gl/drawable_background_pattern.hpp>
#include <mbgl/shaders/gl/drawable_circle.hpp>
Expand Down
2 changes: 2 additions & 0 deletions platform/default/src/mbgl/layermanager/layer_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
#include <mbgl/layermanager/heatmap_layer_factory.hpp>
#include <mbgl/layermanager/hillshade_layer_factory.hpp>
#include <mbgl/layermanager/line_layer_factory.hpp>
#if !defined(MBGL_LAYER_LOCATION_INDICATOR_DISABLE_ALL)
#include <mbgl/layermanager/location_indicator_layer_factory.hpp>
#endif
#include <mbgl/layermanager/raster_layer_factory.hpp>
#include <mbgl/layermanager/symbol_layer_factory.hpp>
#include <mbgl/util/logging.hpp>
Expand Down
2 changes: 1 addition & 1 deletion shaders/generate_shader_code.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ fs.writeFileSync(path.join(outputRoot, "shader_manifest.hpp"),
#pragma once
#include <mbgl/shaders/shader_source.hpp>
#if !MLN_RENDER_BACKEND_METAL
#if MLN_RENDER_BACKEND_OPENGL
${generatedHeaders.join('\n')}
#endif
`);
Expand Down
2 changes: 1 addition & 1 deletion src/mbgl/renderer/renderer_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
constexpr auto EnableMetalCapture = 0;
constexpr auto CaptureFrameStart = 0; // frames are 0-based
constexpr auto CaptureFrameCount = 1;
#else // !MLN_RENDER_BACKEND_METAL
#elif MLN_RENDER_BACKEND_OPENGL
#include <mbgl/gl/defines.hpp>
#if MLN_DRAWABLE_RENDERER
#include <mbgl/gl/drawable_gl.hpp>
Expand Down

0 comments on commit c2966b9

Please sign in to comment.