From 9b18a8121ae837a14557325c985d0e384cc67a8a Mon Sep 17 00:00:00 2001 From: Richard Davey Date: Wed, 18 Jan 2017 01:18:45 +0000 Subject: [PATCH] Added dummy render function. --- v3/src/checksum.js | 2 +- v3/src/renderer/webgl/renderers/ParticleRenderer.js | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/v3/src/checksum.js b/v3/src/checksum.js index 336294b28..908506c8a 100644 --- a/v3/src/checksum.js +++ b/v3/src/checksum.js @@ -1,4 +1,4 @@ var CHECKSUM = { -build: '0981f120-dc3f-11e6-8f23-cff36a839e90' +build: 'bb3f6b90-dd1b-11e6-9f7f-6937ccaffca9' }; module.exports = CHECKSUM; \ No newline at end of file diff --git a/v3/src/renderer/webgl/renderers/ParticleRenderer.js b/v3/src/renderer/webgl/renderers/ParticleRenderer.js index 64c41a9e0..3b8b1bf1c 100644 --- a/v3/src/renderer/webgl/renderers/ParticleRenderer.js +++ b/v3/src/renderer/webgl/renderers/ParticleRenderer.js @@ -6,7 +6,7 @@ var CreateAttribDesc = require('../utils/CreateAttribDesc'); var VertexBuffer = require('../utils/VertexBuffer'); var IndexBuffer = require('../utils/IndexBuffer'); var VertexArray = require('../utils/VertexArray'); -var CONST = require('../../const'); +var CONST = require('../../../const'); var ParticleRenderer = function (game) { @@ -186,7 +186,7 @@ ParticleRenderer.prototype.add = function (x, y, width, height, umin, vmin, umax ParticleRenderer.prototype.setTexture2D = function (texture2D) { var gl = this.glContext; - if (this.currentTexture2D != texture2D) + if (this.currentTexture2D !== texture2D) { this.flush(); gl.activeTexture(gl.TEXTURE0); @@ -195,6 +195,11 @@ ParticleRenderer.prototype.setTexture2D = function (texture2D) } }; +ParticleRenderer.prototype.render = function () +{ + // Stops it breaking +}; + ParticleRenderer.prototype.bind = function () { var gl = this.glContext;