Skip to content

Commit daef7e0

Browse files
committed
fix bug in buffer example.
1 parent 1ea2341 commit daef7e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Assets/uWindowCapture/Examples/Buffer/UwcGetBufferExample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ void Update()
4141
if (!isValid) return;
4242

4343
var window = uwcTexture.window;
44-
var width = window.width;
45-
var height = window.height;
44+
var width = window.rawWidth;
45+
var height = window.rawHeight;
4646

4747
if (texture_ == null || width != texture_.width || height != texture_.height) {
4848
texture_ = new Texture2D(width, height, TextureFormat.RGBA32, false);

0 commit comments

Comments
 (0)