Roderick Colenbrander : wined3d: Add R32F using ARB_texture_rg.

Alexandre Julliard julliard at winehq.org
Fri Dec 19 11:19:40 CST 2008


Module: wine
Branch: master
Commit: 331fe08b549bcb1ca4cb5e3d61eb898f848f0ff9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=331fe08b549bcb1ca4cb5e3d61eb898f848f0ff9

Author: Roderick Colenbrander <thunderbird2k at gmx.net>
Date:   Thu Dec 18 22:34:22 2008 +0100

wined3d: Add R32F using ARB_texture_rg.

---

 dlls/wined3d/utils.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 88980d7..ada273f 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -376,6 +376,12 @@ BOOL initPixelFormats(WineD3D_GL_Info *gl_info)
     dst = getFmtIdx(WINED3DFMT_R32F);
     gl_info->gl_formats[dst].color_fixup = create_color_fixup_desc(
             0, CHANNEL_SOURCE_X, 0, CHANNEL_SOURCE_ONE, 0, CHANNEL_SOURCE_ONE, 0, CHANNEL_SOURCE_W);
+    /* When ARB_texture_rg is supported we only require 32-bit for R32F instead of 128-bit RGBA32F */
+    if(GL_SUPPORT(ARB_TEXTURE_RG))
+    {
+        gl_info->gl_formats[dst].glInternal = GL_R32F;
+        gl_info->gl_formats[dst].glGammaInternal = GL_R32F;
+    }
 
     dst = getFmtIdx(WINED3DFMT_G16R16);
     gl_info->gl_formats[dst].color_fixup = create_color_fixup_desc(




More information about the wine-cvs mailing list