fix(render): remove duplicate blendMode declaration and add mock activeTexture
This commit is contained in:
parent
da24f9944f
commit
88bb16238d
|
|
@ -268,7 +268,6 @@ export class SpriteRenderer {
|
||||||
/** Listener references for cleanup. */
|
/** Listener references for cleanup. */
|
||||||
private readonly handleContextLost: (event: Event) => void
|
private readonly handleContextLost: (event: Event) => void
|
||||||
private readonly handleContextRestored: () => void
|
private readonly handleContextRestored: () => void
|
||||||
private currentBlendMode: 'normal' | 'additive' = 'normal'
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param canvas - the canvas to render into.
|
* @param canvas - the canvas to render into.
|
||||||
|
|
|
||||||
|
|
@ -956,6 +956,7 @@ describe('Diablo II 1.13c Missile Skills Suite', () => {
|
||||||
vertexAttribPointer: () => {},
|
vertexAttribPointer: () => {},
|
||||||
createTexture: () => ({ id: nextId++ }),
|
createTexture: () => ({ id: nextId++ }),
|
||||||
bindTexture: () => {},
|
bindTexture: () => {},
|
||||||
|
activeTexture: () => {},
|
||||||
texParameteri: () => {},
|
texParameteri: () => {},
|
||||||
pixelStorei: () => {},
|
pixelStorei: () => {},
|
||||||
texImage2D: () => {},
|
texImage2D: () => {},
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue