[PATCH] Add R16F support using ARB_texture_rg.
Roderick Colenbrander
thunderbird2k at gmx.net
Thu Dec 18 15:32:07 CST 2008
---
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 f65bcdc..88980d7 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -366,6 +366,12 @@ BOOL initPixelFormats(WineD3D_GL_Info *gl_info)
dst = getFmtIdx(WINED3DFMT_R16F);
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 16-bit for R16F instead of 64-bit RGBA16F */
+ if(GL_SUPPORT(ARB_TEXTURE_RG))
+ {
+ gl_info->gl_formats[dst].glInternal = GL_R16F;
+ gl_info->gl_formats[dst].glGammaInternal = GL_R16F;
+ }
dst = getFmtIdx(WINED3DFMT_R32F);
gl_info->gl_formats[dst].color_fixup = create_color_fixup_desc(
--
1.5.3.4
--========GMX181731229637739517825--
More information about the wine-patches
mailing list