Skip to content

Commit

Permalink
fix: pass antialias down through when creating webgl context #178 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoiver authored May 15, 2024
1 parent 8b1afb2 commit 494e493
Show file tree
Hide file tree
Showing 3 changed files with 165 additions and 122 deletions.
4 changes: 4 additions & 0 deletions examples/demos/multiple-render-passes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,11 +306,15 @@ void main() {
cancelAnimationFrame(id);
}
program.destroy();
program2.destroy();
vertexBuffer.destroy();
vertexBuffer2.destroy();
uniformBuffer.destroy();
inputLayout.destroy();
inputLayout2.destroy();
bindings.destroy();
pipeline.destroy();
pipeline2.destroy();
mainColorRT.destroy();
mainDepthRT.destroy();
device.destroy();
Expand Down
2 changes: 2 additions & 0 deletions examples/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export async function initExample(

const deviceContributionWebGL1 = new WebGLDeviceContribution({
targets: ['webgl1'],
// antialias: true,
xrCompatible: params.xrCompatible,
shaderDebug: true,
trackResources: true,
Expand All @@ -27,6 +28,7 @@ export async function initExample(
});
const deviceContributionWebGL2 = new WebGLDeviceContribution({
targets: ['webgl2', 'webgl1'],
// antialias: true,
xrCompatible: params.xrCompatible,
shaderDebug: true,
trackResources: true,
Expand Down
Loading

0 comments on commit 494e493

Please sign in to comment.