Skip to content

Commit

Permalink
Vulkan build tweaks (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwilsnd authored Oct 7, 2024
1 parent 64c8be5 commit bd268d2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bazel/core.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -682,6 +682,7 @@ MLN_CORE_HEADERS = [
"include/mbgl/layermanager/layer_factory.hpp",
"include/mbgl/layermanager/layer_manager.hpp",
"include/mbgl/layermanager/line_layer_factory.hpp",
"include/mbgl/layermanager/location_indicator_layer_factory.hpp",
"include/mbgl/layermanager/raster_layer_factory.hpp",
"include/mbgl/layermanager/symbol_layer_factory.hpp",
"include/mbgl/map/bound_options.hpp",
Expand Down Expand Up @@ -921,7 +922,6 @@ MLN_OPENGL_SOURCE = [
MLN_OPENGL_HEADERS = [
"include/mbgl/gl/renderable_resource.hpp",
"include/mbgl/gl/renderer_backend.hpp",
"include/mbgl/layermanager/location_indicator_layer_factory.hpp",
"include/mbgl/platform/gl_functions.hpp",
]

Expand Down
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: 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 bd268d2

Please sign in to comment.