Skip to content

Commit 14d36f5

Browse files
committed
fix: webgl ext
1 parent 654e461 commit 14d36f5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/canvas/WebGL/WebGLExtensions/index.android.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,7 @@ export class WEBGL_draw_buffers {
448448
private nativeInstance: any;
449449

450450
constructor(nativeInstance) {
451+
this.nativeInstance = nativeInstance;
451452
this.COLOR_ATTACHMENT0_WEBGL = nativeInstance.COLOR_ATTACHMENT0_EXT;
452453
this.COLOR_ATTACHMENT1_WEBGL = nativeInstance.COLOR_ATTACHMENT1_EXT;
453454
this.COLOR_ATTACHMENT2_WEBGL = nativeInstance.COLOR_ATTACHMENT2_EXT;

packages/canvas/WebGL/WebGLExtensions/index.ios.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,7 @@ export class WEBGL_draw_buffers {
427427
private nativeInstance: any;
428428

429429
constructor(nativeInstance) {
430+
this.nativeInstance = nativeInstance;
430431
this.COLOR_ATTACHMENT0_WEBGL = nativeInstance.COLOR_ATTACHMENT0_EXT;
431432
this.COLOR_ATTACHMENT1_WEBGL = nativeInstance.COLOR_ATTACHMENT1_EXT;
432433
this.COLOR_ATTACHMENT2_WEBGL = nativeInstance.COLOR_ATTACHMENT2_EXT;

0 commit comments

Comments
 (0)