Skip to content

Commit

Permalink
Fix RenderPass texture on the Web build
Browse files Browse the repository at this point in the history
  • Loading branch information
zyperpl committed Dec 9, 2023
1 parent 0985d46 commit e782c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/render_pass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
RenderPass::RenderPass(int width, int height)
{
render_texture = LoadRenderTexture(width, height);
SetTextureFilter(render_texture.texture, TEXTURE_FILTER_POINT);
SetTextureWrap(render_texture.texture, TEXTURE_WRAP_REPEAT);
assert(IsRenderTextureReady(render_texture));
}

Expand Down
2 changes: 1 addition & 1 deletion src/sprite.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Sprite

auto operator<=>(const AnimationTag &) const = default;
};
typedef std::unordered_map<std::string, const AnimationTag> AnimationTags;
typedef std::unordered_map<std::string, AnimationTag> AnimationTags;

[[nodiscard]] Sprite(const std::string &file_path, std::string tag = {});
Sprite(const Sprite &) = delete;
Expand Down

0 comments on commit e782c69

Please sign in to comment.