Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
a58b1562
Commit
a58b1562
authored
Feb 14, 2007
by
H. Verbeet
Committed by
Alexandre Julliard
Feb 15, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Add WINED3DPCMPCAPS flags and use them.
parent
fd8e0f15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
16 deletions
+25
-16
directx.c
dlls/wined3d/directx.c
+16
-16
wined3d_caps.h
include/wine/wined3d_caps.h
+9
-0
No files found.
dlls/wined3d/directx.c
View file @
a58b1562
...
...
@@ -1930,14 +1930,14 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
WINED3DPRASTERCAPS_ZBUFFERLESSHSR
WINED3DPRASTERCAPS_WBUFFER */
*
pCaps
->
ZCmpCaps
=
D3DPCMPCAPS_ALWAYS
|
D3DPCMPCAPS_EQUAL
|
D3DPCMPCAPS_GREATER
|
D3DPCMPCAPS_GREATEREQUAL
|
D3DPCMPCAPS_LESS
|
D3DPCMPCAPS_LESSEQUAL
|
D3DPCMPCAPS_NEVER
|
D3DPCMPCAPS_NOTEQUAL
;
*
pCaps
->
ZCmpCaps
=
WINE
D3DPCMPCAPS_ALWAYS
|
WINE
D3DPCMPCAPS_EQUAL
|
WINE
D3DPCMPCAPS_GREATER
|
WINE
D3DPCMPCAPS_GREATEREQUAL
|
WINE
D3DPCMPCAPS_LESS
|
WINE
D3DPCMPCAPS_LESSEQUAL
|
WINE
D3DPCMPCAPS_NEVER
|
WINE
D3DPCMPCAPS_NOTEQUAL
;
*
pCaps
->
SrcBlendCaps
=
WINED3DPBLENDCAPS_BLENDFACTOR
|
WINED3DPBLENDCAPS_BOTHINVSRCALPHA
|
...
...
@@ -1969,14 +1969,14 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
WINED3DPBLENDCAPS_SRCCOLOR
|
WINED3DPBLENDCAPS_ZERO
;
*
pCaps
->
AlphaCmpCaps
=
D3DPCMPCAPS_ALWAYS
|
D3DPCMPCAPS_EQUAL
|
D3DPCMPCAPS_GREATER
|
D3DPCMPCAPS_GREATEREQUAL
|
D3DPCMPCAPS_LESS
|
D3DPCMPCAPS_LESSEQUAL
|
D3DPCMPCAPS_NEVER
|
D3DPCMPCAPS_NOTEQUAL
;
*
pCaps
->
AlphaCmpCaps
=
WINE
D3DPCMPCAPS_ALWAYS
|
WINE
D3DPCMPCAPS_EQUAL
|
WINE
D3DPCMPCAPS_GREATER
|
WINE
D3DPCMPCAPS_GREATEREQUAL
|
WINE
D3DPCMPCAPS_LESS
|
WINE
D3DPCMPCAPS_LESSEQUAL
|
WINE
D3DPCMPCAPS_NEVER
|
WINE
D3DPCMPCAPS_NOTEQUAL
;
*
pCaps
->
ShadeCaps
=
WINED3DPSHADECAPS_SPECULARGOURAUDRGB
|
WINED3DPSHADECAPS_COLORGOURAUDRGB
|
...
...
include/wine/wined3d_caps.h
View file @
a58b1562
...
...
@@ -34,6 +34,15 @@
#define WINED3DPBLENDCAPS_BOTHINVSRCALPHA 0x00001000
#define WINED3DPBLENDCAPS_BLENDFACTOR 0x00002000
#define WINED3DPCMPCAPS_NEVER 0x00000001
#define WINED3DPCMPCAPS_LESS 0x00000002
#define WINED3DPCMPCAPS_EQUAL 0x00000004
#define WINED3DPCMPCAPS_LESSEQUAL 0x00000008
#define WINED3DPCMPCAPS_GREATER 0x00000010
#define WINED3DPCMPCAPS_NOTEQUAL 0x00000020
#define WINED3DPCMPCAPS_GREATEREQUAL 0x00000040
#define WINED3DPCMPCAPS_ALWAYS 0x00000080
#define WINED3DPMISCCAPS_MASKZ 0x00000002
#define WINED3DPMISCCAPS_LINEPATTERNREP 0x00000004
#define WINED3DPMISCCAPS_CULLNONE 0x00000010
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment