Commit ebcb5f23 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Half float formats need ARB_TEXTURE_FLOAT as well.

Currently we only check if ARB_HALF_FLOAT_PIXEL is supported. This is not enough, we need ARB_TEXTURE_FLOAT as well. This fixes some errors when running the d3d9 visual test with Mesa swrast.
parent 02a2ba9d
......@@ -2321,7 +2321,7 @@ static BOOL CheckTextureCapability(UINT Adapter, WINED3DFORMAT CheckFormat)
/* Floating point formats */
case WINED3DFMT_R16F:
case WINED3DFMT_A16B16G16R16F:
if(GL_SUPPORT(ARB_HALF_FLOAT_PIXEL)) {
if(GL_SUPPORT(ARB_TEXTURE_FLOAT) && GL_SUPPORT(ARB_HALF_FLOAT_PIXEL)) {
TRACE_(d3d_caps)("[OK]\n");
return TRUE;
}
......
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