diff --git a/lib/x11/ext/glx.js b/lib/x11/ext/glx.js index bfe4df7..c9b1869 100644 --- a/lib/x11/ext/glx.js +++ b/lib/x11/ext/glx.js @@ -169,9 +169,18 @@ exports.requireExt = function(display, callback) X.pack_stream.flush(); } - // glClearColor ( 0, 0.5, 1, 1 ); glClear ( GL_COLOR_BUFFER_BIT ); - // xtrace: render commands={command=ClearColor(0x0082) unknown=0x00,0x00,0x80,0x3f,0x00,0x00,0x00,0x3f,0x00,0x00,0x00,0x00,0x00,0x00,0x80,0x3f;},{command=Clear(0x007f) mask=0x00004000 }; - // (context 0300 4004) (1400 8200 0000 803f 0000 003f 0000 0000 0000 803f) (0800 7f00 0040 0000) + ext.Finish = function(ctx, callback) + { + X.seq_num++; + X.pack_stream.pack('CCSL', [ext.majorOpcode, 108, 2, ctx]); + X.replies[X.seq_num] = [ + function(buf, opt) { + return; + }, + callback + ]; + X.pack_stream.flush(); + } ext.Render = function(ctx, data) { X.seq_num++; @@ -196,8 +205,8 @@ exports.requireExt = function(display, callback) X.pack_stream.flush(); } - ext.renderPipeline = function() { - return require('./glxrender')(this); + ext.renderPipeline = function(ctx) { + return require('./glxrender')(this, ctx); } callback(ext);