mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +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;
|
||||
}
|
||||
|
||||
// update retnder targets dimentions
|
||||
if ((mTargetSurface.w != width) || (mTargetSurface.h != height)) {
|
||||
// update render targets dimentions
|
||||
if ((mTargetSurface.w != width) || (mTargetSurface.h != height) || (targetTexture != (WGPUTexture)target)) {
|
||||
// release render tagets
|
||||
mRenderStoragePool.release(mContext);
|
||||
mRenderStorageRoot.release(mContext);
|
||||
|
|
Loading…
Add table
Reference in a new issue