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
5abc0654
Commit
5abc0654
authored
Apr 19, 2003
by
Jason Edmeades
Committed by
Alexandre Julliard
Apr 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct device capabilites including support in previous patch, as
well as making the texture operations capabilities more accurate.
parent
55e85807
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
directx.c
dlls/d3d8/directx.c
+13
-2
No files found.
dlls/d3d8/directx.c
View file @
5abc0654
...
...
@@ -322,6 +322,9 @@ HRESULT WINAPI IDirect3D8Impl_GetDeviceCaps (LPDIRECT3D8 iface,
pCaps
->
CubeTextureFilterCaps
=
0
;
pCaps
->
VolumeTextureFilterCaps
=
0
;
pCaps
->
TextureAddressCaps
=
D3DPTADDRESSCAPS_BORDER
|
D3DPTADDRESSCAPS_CLAMP
|
D3DPTADDRESSCAPS_WRAP
;
#if defined(GL_VERSION_1_3)
pCaps
->
TextureAddressCaps
|=
D3DPTADDRESSCAPS_MIRROR
;
#endif
pCaps
->
VolumeTextureAddressCaps
=
0
;
pCaps
->
LineCaps
=
D3DLINECAPS_TEXTURE
|
D3DLINECAPS_ZTEST
;
...
...
@@ -347,7 +350,15 @@ HRESULT WINAPI IDirect3D8Impl_GetDeviceCaps (LPDIRECT3D8 iface,
D3DSTENCILCAPS_REPLACE
|
D3DSTENCILCAPS_ZERO
/* | D3DSTENCILCAPS_DECR | D3DSTENCILCAPS_INCR */
;
pCaps
->
FVFCaps
=
D3DFVFCAPS_PSIZE
|
0x80000
;
pCaps
->
TextureOpCaps
=
0xFFFFFFFF
;
pCaps
->
TextureOpCaps
=
D3DTEXOPCAPS_ADD
|
D3DTEXOPCAPS_ADDSIGNED
|
D3DTEXOPCAPS_ADDSIGNED2X
|
D3DTEXOPCAPS_MODULATE
|
D3DTEXOPCAPS_MODULATE2X
|
D3DTEXOPCAPS_MODULATE4X
|
D3DTEXOPCAPS_SELECTARG1
|
D3DTEXOPCAPS_DOTPRODUCT3
|
D3DTEXOPCAPS_DISABLE
;
/* FIXME: Add D3DTEXOPCAPS_ADDSMOOTH D3DTEXOPCAPS_BLENDCURRENTALPHA D3DTEXOPCAPS_BLENDDIFFUSEALPHA D3DTEXOPCAPS_BLENDFACTORALPHA
D3DTEXOPCAPS_BLENDTEXTUREALPHA D3DTEXOPCAPS_BLENDTEXTUREALPHAPM D3DTEXOPCAPS_BUMPENVMAP D3DTEXOPCAPS_BUMPENVMAPLUMINANCE
D3DTEXOPCAPS_LERP D3DTEXOPCAPS_MODULATEALPHA_ADDCOLOR D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA
D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA D3DTEXOPCAPS_MULTIPLYADD
D3DTEXOPCAPS_PREMODULATE D3DTEXOPCAPS_SELECTARG2 D3DTEXOPCAPS_SUBTRACT */
{
GLint
gl_max
;
...
...
@@ -653,7 +664,7 @@ HRESULT WINAPI IDirect3D8Impl_CreateDevice (LPDIRECT3D8 iface,
IDirect3DDevice8Impl_SetViewport
((
LPDIRECT3DDEVICE8
)
object
,
&
vp
);
}
TRACE
(
"(%p,%d)
\n
"
,
This
,
Adapter
);
TRACE
(
"(%p,%d)
All defaults now set up, leaving CreateDevice
\n
"
,
This
,
Adapter
);
return
D3D_OK
;
}
...
...
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