mirror of
https://github.com/danbulant/node-x11
synced 2026-06-10 02:00:26 +00:00
glFinish
This commit is contained in:
parent
10fef2fe9a
commit
2aa2001067
1 changed files with 14 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue