Skip to content

Commit bb7b6e6

Browse files
committed
Fix RenderStates comparaison
1 parent 1f3d74e commit bb7b6e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/gf/RenderStates.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ inline namespace v1 {
9696
*/
9797
inline
9898
bool operator==(const RenderStates& lhs, const RenderStates& rhs) {
99-
return lhs.mode == rhs.mode && lhs.transform == rhs.transform && lhs.texture == rhs.texture && lhs.shader == rhs.shader;
99+
return lhs.mode == rhs.mode && lhs.transform == rhs.transform && lhs.texture[0] == rhs.texture[0] && lhs.texture[1] == rhs.texture[1] && lhs.shader == rhs.shader;
100100
}
101101

102102
#ifndef DOXYGEN_SHOULD_SKIP_THIS

0 commit comments

Comments
 (0)