http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02a2ba9
)
wined3d: Half float formats need ARB_TEXTURE_FLOAT as well.
author
H. Verbeet
<hverbeet@gmail.com>
Sun, 22 Jun 2008 22:22:29 +0000
(
00:22
+0200)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 23 Jun 2008 10:55:08 +0000
(12:55 +0200)
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.
dlls/wined3d/directx.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/wined3d/directx.c
b/dlls/wined3d/directx.c
index db23f0f1580d7986f5a35a63a3688d9e4bacefee..e293d7dcb61e45b6105a21476d42456ac06df698 100644
(file)
--- a/
dlls/wined3d/directx.c
+++ b/
dlls/wined3d/directx.c
@@
-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;
}