Józef Kucia : wined3d: Add support for WINED3DFMT_R8_SINT format.
Module: wine Branch: master Commit: ec2eaaade05dcdde10ddd23c18ee722e1f55d846 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ec2eaaade05dcdde10ddd23c18... Author: Józef Kucia <jkucia(a)codeweavers.com> Date: Thu Nov 10 12:39:08 2016 +0100 wined3d: Add support for WINED3DFMT_R8_SINT format. Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/wined3d/utils.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c index 4f5f8ad..9e16416 100644 --- a/dlls/wined3d/utils.c +++ b/dlls/wined3d/utils.c @@ -250,6 +250,7 @@ static const struct wined3d_typed_format_info typed_formats[] = {WINED3DFMT_D16_UNORM, WINED3DFMT_R16_TYPELESS, "D"}, {WINED3DFMT_R8_UNORM, WINED3DFMT_R8_TYPELESS, "u"}, {WINED3DFMT_R8_UINT, WINED3DFMT_R8_TYPELESS, "U"}, + {WINED3DFMT_R8_SINT, WINED3DFMT_R8_TYPELESS, "I"}, {WINED3DFMT_BC1_UNORM_SRGB, WINED3DFMT_BC1_TYPELESS, ""}, {WINED3DFMT_BC1_UNORM, WINED3DFMT_BC1_TYPELESS, ""}, {WINED3DFMT_BC2_UNORM_SRGB, WINED3DFMT_BC2_TYPELESS, ""}, @@ -1332,6 +1333,10 @@ static const struct wined3d_format_texture_info format_texture_info[] = GL_RED_INTEGER, GL_UNSIGNED_BYTE, 0, WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET, ARB_TEXTURE_RG, NULL}, + {WINED3DFMT_R8_SINT, GL_R8I, GL_R8I, 0, + GL_RED_INTEGER, GL_BYTE, 0, + WINED3DFMT_FLAG_TEXTURE | WINED3DFMT_FLAG_RENDERTARGET, + ARB_TEXTURE_RG, NULL}, /* Luminance */ {WINED3DFMT_L8_UNORM, GL_LUMINANCE8, GL_SLUMINANCE8_EXT, 0, GL_LUMINANCE, GL_UNSIGNED_BYTE, 0,
participants (1)
-
Alexandre Julliard