diff options
Diffstat (limited to '3rdparty/bgfx/examples/common/cube_atlas.cpp')
-rw-r--r-- | 3rdparty/bgfx/examples/common/cube_atlas.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/3rdparty/bgfx/examples/common/cube_atlas.cpp b/3rdparty/bgfx/examples/common/cube_atlas.cpp index 15d91b98f9e..6928338a642 100644 --- a/3rdparty/bgfx/examples/common/cube_atlas.cpp +++ b/3rdparty/bgfx/examples/common/cube_atlas.cpp @@ -60,8 +60,8 @@ private: int32_t width; //< The line _width. The ending coordinate (inclusive) will be x+width-1. }; - - uint32_t m_width; //< width (in pixels) of the underlying texture + + uint32_t m_width; //< width (in pixels) of the underlying texture uint32_t m_height; //< height (in pixels) of the underlying texture uint32_t m_usedSpace; //< Surface used in squared pixel std::vector<Node> m_skyline; //< node of the skyline algorithm @@ -326,6 +326,7 @@ void Atlas::init() break; case bgfx::RendererType::Direct3D11: + case bgfx::RendererType::Direct3D12: m_texelOffset[0] = texelHalf; m_texelOffset[1] = texelHalf; break; |