Henri Verbeet : wined3d: Use ARB_texture_rg for WINED3DFMT_R16G16_UNORM textures when available.
Alexandre Julliard
julliard at winehq.org
Fri Mar 9 12:34:19 CST 2012
Module: wine
Branch: master
Commit: 6eb5c891ac367588f3060edf5a22f7c33549cf91
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6eb5c891ac367588f3060edf5a22f7c33549cf91
Author: Henri Verbeet <hverbeet at codeweavers.com>
Date: Thu Mar 8 20:27:14 2012 +0100
wined3d: Use ARB_texture_rg for WINED3DFMT_R16G16_UNORM textures when available.
---
dlls/wined3d/utils.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 847366e..66c8444 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -729,6 +729,10 @@ static const struct wined3d_format_texture_info format_texture_info[] =
GL_RGB, GL_UNSIGNED_SHORT, 6,
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING,
WINED3D_GL_EXT_NONE, convert_r16g16},
+ {WINED3DFMT_R16G16_UNORM, GL_RG16, GL_RG16, 0,
+ GL_RG, GL_UNSIGNED_SHORT, 0,
+ WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING | WINED3DFMT_FLAG_RENDERTARGET,
+ ARB_TEXTURE_RG, NULL},
{WINED3DFMT_B10G10R10A2_UNORM, GL_RGB10_A2, GL_RGB10_A2, 0,
GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV, 0,
WINED3DFMT_FLAG_POSTPIXELSHADER_BLENDING | WINED3DFMT_FLAG_FILTERING | WINED3DFMT_FLAG_RENDERTARGET,
More information about the wine-cvs
mailing list