st/wgl: add support for WGL_ARB_render_texture
authorBrian Paul <brianp@vmware.com>
Thu, 3 Dec 2015 16:12:20 +0000 (09:12 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 3 Dec 2015 16:12:20 +0000 (09:12 -0700)
commite832b5b7fa196853bc61895869bd20c8b85f0ea9
tree732d0ae1817d473f225dadd47d6ae290081a5af2
parent47b9ef872b70066756e004a6dd52482ea2899d43
st/wgl: add support for WGL_ARB_render_texture

There are a few legacy OpenGL apps on Windows which need this extension.
We basically use glCopyTex[Sub]Image to implement wglBindTexImageARB (see
the implementation notes for details).

v2: refactor code to use st_copy_framebuffer_to_texture() helper function.

Reviewed-by: José Fonseca <jfonseca@vmware.com>
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/state_trackers/wgl/Makefile.sources
src/gallium/state_trackers/wgl/stw_ext_extensionsstring.c
src/gallium/state_trackers/wgl/stw_ext_pbuffer.c
src/gallium/state_trackers/wgl/stw_ext_pixelformat.c
src/gallium/state_trackers/wgl/stw_framebuffer.h
src/gallium/state_trackers/wgl/stw_getprocaddress.c
src/gallium/state_trackers/wgl/stw_pixelformat.c
src/gallium/state_trackers/wgl/stw_pixelformat.h
src/gallium/state_trackers/wgl/stw_st.c