diff options
Diffstat (limited to 'drape/render_state.cpp')
-rw-r--r-- | drape/render_state.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/drape/render_state.cpp b/drape/render_state.cpp index 0da8a47e3c..a9b409080c 100644 --- a/drape/render_state.cpp +++ b/drape/render_state.cpp @@ -16,6 +16,8 @@ std::string const kMaskTextureName = "u_maskTex"; extern void ApplyDepthStencilStateForMetal(ref_ptr<GraphicsContext> context); extern void ApplyPipelineStateForMetal(ref_ptr<GraphicsContext> context, ref_ptr<GpuProgram> program, bool blendingEnabled); +extern void ApplyTexturesForMetal(ref_ptr<GraphicsContext> context, ref_ptr<GpuProgram> program, + RenderState const & state); #endif // static @@ -213,7 +215,16 @@ void TextureState::ApplyTextures(ref_ptr<GraphicsContext> context, RenderState c } } } - //TODO(@rokuz,@darina): Metal? + else if (apiVersion == dp::ApiVersion::Metal) + { +#if defined(OMIM_OS_IPHONE) + ApplyTexturesForMetal(context, program, state); +#endif + } + else + { + CHECK(false, ("Unsupported API version.")); + } } uint8_t TextureState::GetLastUsedSlots() |