Skip to content

Commit

Permalink
[mesh_renderer] fix gcc build error
Browse files Browse the repository at this point in the history
  • Loading branch information
harrand committed Sep 3, 2023
1 parent ec63703 commit ac36ff1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/tz/ren/mesh.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ namespace tz::ren
namespace detail
{
struct texture_tag_t{};
using texture_handle = tz::handle<detail::texture_tag_t>;
}

using texture_handle = tz::handle<detail::texture_tag_t>;

// represents one of the textures bound to an object (drawable)
struct texture_locator
Expand All @@ -60,7 +60,7 @@ namespace tz::ren
// colour multiplier on the sampled texel
tz::vec3 colour_tint = tz::vec3::filled(1.0f);
// id within the overarching texture resource array to be sampled.
texture_handle texture = tz::nullhand;
detail::texture_handle texture = tz::nullhand;
};

constexpr unsigned int mesh_renderer_max_tex_count = 8;
Expand Down Expand Up @@ -90,7 +90,7 @@ namespace tz::ren
using mesh_t = mesh<mesh_renderer_max_tex_count>;
using mesh_handle = tz::handle<mesh_t>;
using object_handle = tz::handle<object_tag_t>;
using texture_handle = texture_handle;
using texture_handle = detail::texture_handle;

struct stored_assets
{
Expand Down

0 comments on commit ac36ff1

Please sign in to comment.