From f629c90b3592e78ba0d932ad75e787375b391b3c Mon Sep 17 00:00:00 2001 From: Patrick Schroen Date: Mon, 14 Oct 2024 03:47:06 -0400 Subject: [PATCH] fix: types setblendfunc (#234) --- types/core/Program.d.ts | 2 +- types/core/Renderer.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/core/Program.d.ts b/types/core/Program.d.ts index 2c63999d..936bc783 100644 --- a/types/core/Program.d.ts +++ b/types/core/Program.d.ts @@ -51,7 +51,7 @@ export class Program { setShaders(options: { vertex: string; fragment: string }): void; - setBlendFunc(src: GLenum, dst: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; + setBlendFunc(src: GLenum, dst: GLenum, srcAlpha?: GLenum, dstAlpha?: GLenum): void; setBlendEquation(modeRGB: GLenum, modeAlpha: GLenum): void; diff --git a/types/core/Renderer.d.ts b/types/core/Renderer.d.ts index 6612f7c7..b4485e35 100644 --- a/types/core/Renderer.d.ts +++ b/types/core/Renderer.d.ts @@ -118,7 +118,7 @@ export class Renderer { disable(id: GLenum): void; - setBlendFunc(src: GLenum, dst: GLenum, srcAlpha: GLenum, dstAlpha: GLenum): void; + setBlendFunc(src: GLenum, dst: GLenum, srcAlpha?: GLenum, dstAlpha?: GLenum): void; setBlendEquation(modeRGB: GLenum, modeAlpha: GLenum): void;