summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-06-12 15:39:58 -0700
committerAlon Zakai <alonzakai@gmail.com>2014-06-12 15:39:58 -0700
commit165c05e98c047c4ba9679c287ead18d211f68696 (patch)
tree5d189de94bdc21643cbffdd5b0ec4b86468fa864
parentab36fca70b972c149fb2d67a5854cec921630174 (diff)
use === in some gl checks
-rw-r--r--src/library_gl.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/library_gl.js b/src/library_gl.js
index 2659a9d9..71cc8454 100644
--- a/src/library_gl.js
+++ b/src/library_gl.js
@@ -1316,7 +1316,7 @@ var LibraryGL = {
#endif
location = GL.uniforms[location];
var view;
- if (count == 1) {
+ if (count === 1) {
// avoid allocation for the common case of uploading one uniform
view = GL.miniTempBufferViews[0];
view[0] = {{{ makeGetValue('value', '0', 'float') }}};
@@ -1333,7 +1333,7 @@ var LibraryGL = {
#endif
location = GL.uniforms[location];
var view;
- if (count == 1) {
+ if (count === 1) {
// avoid allocation for the common case of uploading one uniform
view = GL.miniTempBufferViews[1];
view[0] = {{{ makeGetValue('value', '0', 'float') }}};
@@ -1351,7 +1351,7 @@ var LibraryGL = {
#endif
location = GL.uniforms[location];
var view;
- if (count == 1) {
+ if (count === 1) {
// avoid allocation for the common case of uploading one uniform
view = GL.miniTempBufferViews[2];
view[0] = {{{ makeGetValue('value', '0', 'float') }}};
@@ -1370,7 +1370,7 @@ var LibraryGL = {
#endif
location = GL.uniforms[location];
var view;
- if (count == 1) {
+ if (count === 1) {
// avoid allocation for the common case of uploading one uniform
view = GL.miniTempBufferViews[3];
view[0] = {{{ makeGetValue('value', '0', 'float') }}};
@@ -1390,7 +1390,7 @@ var LibraryGL = {
#endif
location = GL.uniforms[location];
var view;
- if (count == 1) {
+ if (count === 1) {
// avoid allocation for the common case of uploading one uniform matrix
view = GL.miniTempBufferViews[3];
for (var i = 0; i < 4; i++) {
@@ -1409,7 +1409,7 @@ var LibraryGL = {
#endif
location = GL.uniforms[location];
var view;
- if (count == 1) {
+ if (count === 1) {
// avoid allocation for the common case of uploading one uniform matrix
view = GL.miniTempBufferViews[8];
for (var i = 0; i < 9; i++) {
@@ -1428,7 +1428,7 @@ var LibraryGL = {
#endif
location = GL.uniforms[location];
var view;
- if (count == 1) {
+ if (count === 1) {
// avoid allocation for the common case of uploading one uniform matrix
view = GL.miniTempBufferViews[15];
for (var i = 0; i < 16; i++) {