[XForms] Patch: Off-screen GLXContext in context sharing pools.

jason cipriani jac4 at mindless.com
Tue May 18 01:32:35 EDT 2004


> However, I did get another idea for another feature to add to the context sharing stuff, I'll keep you posted.

I appear to be on a roll. Here's a patch for the context sharing patch, in a manner of speaking. This patch provides three new API functions in glcanvas.c/
.h:

- fl_enable_sglpool_persistence()
- fl_disable_sglpool_persistence()
- fl_is_sglpool_persistent()

This patch also #defines SGLDEBUG to 0 in glcanvas.c to disable debugging output, and removes a #define that was no longer needed that I forgot to get 
rid of (MAXPOOLNAMELEN or something). Additonally, there is also an update for the test program that was included in the last patch and the 
"documentation" (sglcanvas.html) as well. Using patch -p1, these diff files may be applied like so:

1) Obtain fresh copy of xforms-1.0.90. Do the following before ./configure:
2) Apply Angus' GL_CANVAS_LOCATION patch (this is for the demo program -- you don't have to do it but you'll have to modify the demo program to 
use whatever system for including GL/glx.h and glcanvas.h is in place).
3) Download first patch, extract it.
4) Apply $FIRST_PATCH/patch.diff in xforms-1.0.90/
---
5) Download second patch, extract it.
6) Apply $SECOND_PATCH/patch2.diff in xforms-1.0.90/
7) Apply $SECOND_PATCH/demo.diff in $FIRST_PATCH/demo/
8) Apply $SECOND_PATCH/doc.diff in $FIRST_PATCH/
---
9) Build and install xforms as usual, then build demo which still may require some Makefile tweaking.

patch2.diff updates gl/glcanvas.c and gl/glcanvas.h. I now consider the context sharing stuff finished. Although, now that I'm feeling familiar with the 
fdesign source and I'm done with school, expect some neato fdesign code in the next few weeks ;) .

Jason
-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch2.tgz
Type: application/octet-stream
Size: 6852 bytes
Desc: not available
Url : attachments/20040518/0b173d88/attachment-0010.obj 


More information about the Xforms mailing list