=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Don' t use depth textures without ARB_depth_texture.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jun 9 08:25:53 CDT 2015
Module: wine
Branch: master
Commit: 733d4b5ecc2e5e5e7098f2f4b92b7c245ed3fc6c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=733d4b5ecc2e5e5e7098f2f4b92b7c245ed3fc6c
Author: Stefan Dösinger <stefan at codeweavers.com>
Date: Tue Jun 9 09:28:09 2015 +0200
wined3d: Don't use depth textures without ARB_depth_texture.
---
dlls/wined3d/utils.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/dlls/wined3d/utils.c b/dlls/wined3d/utils.c
index 687d3d7..62158a0 100644
--- a/dlls/wined3d/utils.c
+++ b/dlls/wined3d/utils.c
@@ -2121,6 +2121,16 @@ static BOOL init_format_texture_info(struct wined3d_adapter *adapter, struct win
if ((format->flags[WINED3D_GL_RES_TYPE_TEX_2D] & WINED3DFMT_FLAG_SRGB_WRITE) && !srgb_write)
format_clear_flag(format, WINED3DFMT_FLAG_SRGB_WRITE);
+
+ if (!gl_info->supported[ARB_DEPTH_TEXTURE]
+ && format_texture_info[i].flags & (WINED3DFMT_FLAG_DEPTH | WINED3DFMT_FLAG_STENCIL))
+ {
+ format->flags[WINED3D_GL_RES_TYPE_TEX_1D] &= ~WINED3DFMT_FLAG_TEXTURE;
+ format->flags[WINED3D_GL_RES_TYPE_TEX_2D] &= ~WINED3DFMT_FLAG_TEXTURE;
+ format->flags[WINED3D_GL_RES_TYPE_TEX_3D] &= ~WINED3DFMT_FLAG_TEXTURE;
+ format->flags[WINED3D_GL_RES_TYPE_TEX_CUBE] &= ~WINED3DFMT_FLAG_TEXTURE;
+ format->flags[WINED3D_GL_RES_TYPE_TEX_RECT] &= ~WINED3DFMT_FLAG_TEXTURE;
+ }
}
/* Texture conversion stuff */
More information about the wine-cvs
mailing list