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.
This commit is contained in:
H. Verbeet 2008-06-23 00:22:29 +02:00 committed by Alexandre Julliard
parent 02a2ba9d2f
commit ebcb5f23a1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}