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
…) (#181)

* fix: pass antialias down through when creating webgl context #178 (#180)

* chore: commit changeset (#182)

* chore(release): bump version (#183)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored May 15, 2024
1 parent 8b1afb2 commit ab4dffc
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 123 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @antv/g-device-api

## 1.6.9

### Patch Changes

- 86536cf: Pass through antialias option when creating webgl context.

## 1.6.8

### Patch Changes
Expand Down
Binary file modified __tests__/integration/snapshots/stencil.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@antv/g-device-api",
"version": "1.6.8",
"version": "1.6.9",
"description": "A Device API references WebGPU implementations",
"keywords": [
"antv",
Expand Down
Loading

0 comments on commit ab4dffc

Please sign in to comment.