This commit is contained in:
Andrey Sidorov 2012-12-20 01:16:19 +11:00
parent 8e833145ab
commit aa7ab0b7d5

View file

@ -108,7 +108,6 @@ module.exports = function(GLX, ctx) {
function render(ctxLocal) {
if (!ctxLocal) // ctxLocal overrides ctx passed during creation of renderContext
ctxLocal = ctx;
console.log("render called");
GLX.Render(ctxLocal, buffers);
buffers = [];
currentLength = 0;
@ -220,8 +219,7 @@ module.exports = function(GLX, ctx) {
// flush render buffer before glx requests
renderContext[name] = function(p1, p2, p3, p4, p5, p6, p7, p8) {
console.log(name);
renderContext.render();
render();
GLX[name](ctx, p1, p2, p3, p4, p5, p6, p7, p8);
}
});