mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-08 13:43:43 +00:00
wg_engine: fixed target texture update
Allows the target texture to be updated without forcing the size to changed.
This commit is contained in:
parent
e0b8fcc93e
commit
40453a4986
1 changed files with 2 additions and 2 deletions
|
@ -383,8 +383,8 @@ bool WgRenderer::target(WGPUDevice device, WGPUInstance instance, void* target,
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update retnder targets dimentions
|
// update render targets dimentions
|
||||||
if ((mTargetSurface.w != width) || (mTargetSurface.h != height)) {
|
if ((mTargetSurface.w != width) || (mTargetSurface.h != height) || (targetTexture != (WGPUTexture)target)) {
|
||||||
// release render tagets
|
// release render tagets
|
||||||
mRenderStoragePool.release(mContext);
|
mRenderStoragePool.release(mContext);
|
||||||
mRenderStorageRoot.release(mContext);
|
mRenderStorageRoot.release(mContext);
|
||||||
|
|
Loading…
Add table
Reference in a new issue