mirror of
https://github.com/thorvg/thorvg.git
synced 2025-06-07 21:23:32 +00:00
wg_engine: fixed target surface update
Allows the target surface to be updated without forcing the size to changed.
This commit is contained in:
parent
6008120d35
commit
7c9bead192
1 changed files with 1 additions and 1 deletions
|
@ -384,7 +384,7 @@ bool WgRenderer::target(WGPUDevice device, WGPUInstance instance, void* target,
|
|||
}
|
||||
|
||||
// update render targets dimentions
|
||||
if ((mTargetSurface.w != width) || (mTargetSurface.h != height) || (targetTexture != (WGPUTexture)target)) {
|
||||
if ((mTargetSurface.w != width) || (mTargetSurface.h != height) || (type == 0 ? (surface != (WGPUSurface)target) : (targetTexture != (WGPUTexture)target))) {
|
||||
// release render tagets
|
||||
mRenderStoragePool.release(mContext);
|
||||
mRenderStorageRoot.release(mContext);
|
||||
|
|
Loading…
Add table
Reference in a new issue