WGL: WGL_ARB_render_texture speedup

Roderick Colenbrander thunderbird2k at gmx.net
Sun Jul 29 07:18:26 CDT 2007


Hi,

This patch greatly improves the performance of WGL_ARB_render_texture. Before 
I used glReadPixels to copy data from the pbuffer to system memory, later on 
I copied it back to a texture. I knew the real solution was the use of 
glCopyTexImage2D (which saves the gpu->cpu->gpu copying) but I wasn't able to 
get it working partly due to some bugs in the old pbuffer code.

The new code is a lot faster. Some demos have become 5x faster or more! All 
demos still work.

Regards,
Roderick Colenbrander
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Replace-glReadPixels-in-wglBindTexImage2D-by-the-MUC.patch
Type: text/x-diff
Size: 4956 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070729/84655b77/0008-Replace-glReadPixels-in-wglBindTexImage2D-by-the-MUC-0001.bin


More information about the wine-patches mailing list