Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gl-util

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gl-util - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

19

context.js

@@ -5,3 +5,2 @@ /** @module gl-util/context */

const glContext = require('webgl-context')
const extend = require('object-assign')

@@ -19,14 +18,12 @@ module.exports = setContext;

//provide defaults
opts = extend({
antialias: true,
alpha: true,
premultipliedAlpha: true,
preserveDrawingBuffer: true,
depth: false,
stencil: false,
float: false
}, opts);
//create new context with default options
let gl = glContext(opts);
let gl = glContext({
antialias: opts.antialias != null ? opts.antialias : true,
alpha: opts.alpha != null ? opts.alpha : true,
premultipliedAlpha: opts.premultipliedAlpha != null ? opts.premultipliedAlpha : true,
preserveDrawingBuffer: opts.preserveDrawingBuffer != null ? opts.preserveDrawingBuffer : true,
depth: opts.depth != null ? opts.depth : false,
stencil: opts.stencil != null ? opts.stencil : false
});

@@ -33,0 +30,0 @@ //enable extensions

{
"name": "gl-util",
"version": "1.1.2",
"version": "1.1.3",
"description": "Set of practical webgl utils",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc