Skip to content

Commit 54a98e4

Browse files
SergeyLebedkinhermet
authored andcommitted
wg_engine: artifacts bugs fix
Fix borders artifacts by changing sampling clamp method from repeat to clamp #3528
1 parent 02ea0ea commit 54a98e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/wg_engine/tvgWgRenderData.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void WgImageData::update(WgContext& context, const RenderSurface* surface)
4646
textureView = context.createTextureView(texture);
4747
// update bind group
4848
context.layouts.releaseBindGroup(bindGroup);
49-
bindGroup = context.layouts.createBindGroupTexSampled(context.samplerLinearRepeat, textureView);
49+
bindGroup = context.layouts.createBindGroupTexSampled(context.samplerLinearClamp, textureView);
5050
}
5151
};
5252

0 commit comments

Comments
 (0)