Skip to content

Commit

Permalink
Textures with different part rects were incorrectly considered equal,…
Browse files Browse the repository at this point in the history
… which caused replacing textures in renderers to fail if only the part rect differed
  • Loading branch information
texus committed Jan 22, 2024
1 parent 4dc4989 commit 377d86c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ TGUI 1.2 (TBD)
- Added ignoreMouseEvents function to canvas widgets
- Replaced getWidgetAtPosition with getWidgetAtPos
- getWidgetBelowMouseCursor was given a parameter for recursive search
- Textures with different part rects were incorrectly considered equal


TGUI 1.1 (4 November 2023)
Expand Down
1 change: 1 addition & 0 deletions src/Texture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ TGUI_IGNORE_DEPRECATED_WARNINGS_END
{
return (m_id == right.m_id)
&& (!m_id.empty() || (m_data == right.m_data))
&& (m_partRect == right.m_partRect)
&& (m_middleRect == right.m_middleRect)
#if TGUI_HAS_RENDERER_BACKEND_SFML_GRAPHICS
&& (m_shader == right.m_shader)
Expand Down

0 comments on commit 377d86c

Please sign in to comment.