mirror of
https://github.com/danbulant/node-x11
synced 2026-06-24 17:21:47 +00:00
cleanup
This commit is contained in:
parent
8e833145ab
commit
aa7ab0b7d5
1 changed files with 1 additions and 3 deletions
|
|
@ -108,7 +108,6 @@ module.exports = function(GLX, ctx) {
|
||||||
function render(ctxLocal) {
|
function render(ctxLocal) {
|
||||||
if (!ctxLocal) // ctxLocal overrides ctx passed during creation of renderContext
|
if (!ctxLocal) // ctxLocal overrides ctx passed during creation of renderContext
|
||||||
ctxLocal = ctx;
|
ctxLocal = ctx;
|
||||||
console.log("render called");
|
|
||||||
GLX.Render(ctxLocal, buffers);
|
GLX.Render(ctxLocal, buffers);
|
||||||
buffers = [];
|
buffers = [];
|
||||||
currentLength = 0;
|
currentLength = 0;
|
||||||
|
|
@ -220,8 +219,7 @@ module.exports = function(GLX, ctx) {
|
||||||
|
|
||||||
// flush render buffer before glx requests
|
// flush render buffer before glx requests
|
||||||
renderContext[name] = function(p1, p2, p3, p4, p5, p6, p7, p8) {
|
renderContext[name] = function(p1, p2, p3, p4, p5, p6, p7, p8) {
|
||||||
console.log(name);
|
render();
|
||||||
renderContext.render();
|
|
||||||
GLX[name](ctx, p1, p2, p3, p4, p5, p6, p7, p8);
|
GLX[name](ctx, p1, p2, p3, p4, p5, p6, p7, p8);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue