Added dummy render function.

This commit is contained in:
Richard Davey 2017-01-18 01:18:45 +00:00
parent c28cfc4548
commit 9b18a8121a
2 changed files with 8 additions and 3 deletions

View file

@ -1,4 +1,4 @@
var CHECKSUM = {
build: '0981f120-dc3f-11e6-8f23-cff36a839e90'
build: 'bb3f6b90-dd1b-11e6-9f7f-6937ccaffca9'
};
module.exports = CHECKSUM;

View file

@ -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;