Commit 03bacf72 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Advertise shader emulation of bumpmap formats.

parent ffbc96b4
......@@ -2126,11 +2126,19 @@ static BOOL CheckTextureCapability(UINT Adapter, WINED3DFORMAT CheckFormat)
GL_SUPPORT(ATI_FRAGMENT_SHADER)) {
return TRUE;
}
if(GL_SUPPORT(ARB_FRAGMENT_SHADER) || GL_SUPPORT(ARB_FRAGMENT_PROGRAM)) {
/* Shader emulated */
return TRUE;
}
TRACE_(d3d_caps)("[FAILED] - No converted formats on volumes\n");
return FALSE;
case WINED3DFMT_X8L8V8U8:
case WINED3DFMT_L6V5U5:
if(GL_SUPPORT(ARB_FRAGMENT_SHADER) || GL_SUPPORT(ARB_FRAGMENT_PROGRAM)) {
/* Shader emulated */
return TRUE;
}
WARN_(d3d_caps)("[FAILED]\n");
return FALSE;
......@@ -2140,6 +2148,10 @@ static BOOL CheckTextureCapability(UINT Adapter, WINED3DFORMAT CheckFormat)
WARN_(d3d_caps)("[Not supported, but pretended to do]\n");
return TRUE;
}
if(GL_SUPPORT(ARB_FRAGMENT_SHADER) || GL_SUPPORT(ARB_FRAGMENT_PROGRAM)) {
/* Shader emulated */
return TRUE;
}
TRACE_(d3d_caps)("[FAILED] - No converted formats on volumes\n");
return FALSE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment