diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2019-03-20 13:48:14 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2019-04-05 11:49:17 +0200 |
commit | 839f4687aacb98440f85660120173c9b9895f46a (patch) | |
tree | 8b0b34ee2742b4261bc5411d1c0f8deb8e750cda /src/mbgl/util/offscreen_texture.cpp | |
parent | ca60095071bbc2938011957b524c511ba15ff49d (diff) | |
download | qtlocation-mapboxgl-839f4687aacb98440f85660120173c9b9895f46a.tar.gz |
[core] gl::RenderbufferType -> gfx::RenderbufferPixelType
Diffstat (limited to 'src/mbgl/util/offscreen_texture.cpp')
-rw-r--r-- | src/mbgl/util/offscreen_texture.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mbgl/util/offscreen_texture.cpp b/src/mbgl/util/offscreen_texture.cpp index 6bc09c7b16..be17aa06aa 100644 --- a/src/mbgl/util/offscreen_texture.cpp +++ b/src/mbgl/util/offscreen_texture.cpp @@ -17,7 +17,7 @@ public: } Impl(gl::Context& context_, const Size size_, - gl::Renderbuffer<gl::RenderbufferType::DepthComponent>& depth_, + gl::Renderbuffer<gfx::RenderbufferPixelType::Depth>& depth_, const gfx::TextureChannelDataType type_) : context(context_), size(std::move(size_)), depth(&depth_), type(type_) { assert(!size.isEmpty()); @@ -58,7 +58,7 @@ private: const Size size; optional<gl::Framebuffer> framebuffer; optional<gfx::Texture> texture; - gl::Renderbuffer<gl::RenderbufferType::DepthComponent>* depth = nullptr; + gl::Renderbuffer<gfx::RenderbufferPixelType::Depth>* depth = nullptr; const gfx::TextureChannelDataType type; }; @@ -72,7 +72,7 @@ OffscreenTexture::OffscreenTexture(gfx::Context& context, OffscreenTexture::OffscreenTexture(gfx::Context& context, const Size size, - gl::Renderbuffer<gl::RenderbufferType::DepthComponent>& renderbuffer, + gl::Renderbuffer<gfx::RenderbufferPixelType::Depth>& renderbuffer, const gfx::TextureChannelDataType type) // TODO: remove cast : impl(std::make_unique<Impl>(reinterpret_cast<gl::Context&>(context), std::move(size), renderbuffer, type)) { |