Comparing version 1.0.10 to 1.0.11
@@ -17,3 +17,9 @@ 'use strict' | ||
program = getProgram(gl, program); | ||
if (options instanceof WebGLProgram) { | ||
program = options; | ||
options = null; | ||
} | ||
else { | ||
program = getProgram(gl, program); | ||
} | ||
@@ -20,0 +26,0 @@ if (!program) throw Error('Context has no active program'); |
{ | ||
"name": "gl-util", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Set of practical webgl utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -19,4 +19,9 @@ 'use strict' | ||
if (!program) program = getProgram(gl); | ||
else getProgram(gl, program); | ||
if (options instanceof WebGLProgram) { | ||
program = options; | ||
options = null; | ||
} | ||
else { | ||
program = getProgram(gl, program); | ||
} | ||
@@ -23,0 +28,0 @@ if (!program) throw Error('Context has no active program'); |
@@ -19,4 +19,9 @@ /* @module gl-util/unifrom */ | ||
if (!program) program = getProgram(gl); | ||
else getProgram(gl, program); | ||
if (options instanceof WebGLProgram) { | ||
program = options; | ||
options = null; | ||
} | ||
else { | ||
program = getProgram(gl, program); | ||
} | ||
@@ -23,0 +28,0 @@ if (!program) throw Error('Context has no active program'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82712
578