Skip to content

Commit

Permalink
Pass the context also in WebGL1 (#16148)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaananW authored Feb 5, 2025
1 parent c9fbe99 commit 124e6e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dev/core/src/Materials/effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ export class Effect implements IDisposable {
existingPipelineContext: keepExistingPipelineContext ? previousPipelineContext : null,
vertex,
fragment,
context: engine.shaderPlatformName === "WEBGL2" ? (engine as any)._gl : undefined,
context: engine.shaderPlatformName === "WEBGL2" || engine.shaderPlatformName === "WEBGL1" ? (engine as any)._gl : undefined,
rebuildRebind: (
vertexSourceCode: string,
fragmentSourceCode: string,
Expand Down

0 comments on commit 124e6e1

Please sign in to comment.