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
91998b4d
Commit
91998b4d
authored
Aug 07, 2006
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Aug 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Textureops caps fix.
parent
47b90d6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
directx.c
dlls/wined3d/directx.c
+11
-5
No files found.
dlls/wined3d/directx.c
View file @
91998b4d
...
...
@@ -1950,10 +1950,7 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
D3DTEXOPCAPS_SELECTARG1
|
D3DTEXOPCAPS_SELECTARG2
|
D3DTEXOPCAPS_DISABLE
;
#if defined(GL_VERSION_1_3)
*
pCaps
->
TextureOpCaps
|=
D3DTEXOPCAPS_DOTPRODUCT3
|
D3DTEXOPCAPS_SUBTRACT
;
#endif
if
(
GL_SUPPORT
(
ARB_TEXTURE_ENV_COMBINE
)
||
GL_SUPPORT
(
EXT_TEXTURE_ENV_COMBINE
)
||
GL_SUPPORT
(
NV_TEXTURE_ENV_COMBINE4
))
{
...
...
@@ -1961,7 +1958,8 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
D3DTEXOPCAPS_BLENDTEXTUREALPHA
|
D3DTEXOPCAPS_BLENDFACTORALPHA
|
D3DTEXOPCAPS_BLENDCURRENTALPHA
|
D3DTEXOPCAPS_LERP
;
D3DTEXOPCAPS_LERP
|
D3DTEXOPCAPS_SUBTRACT
;
}
if
(
GL_SUPPORT
(
NV_TEXTURE_ENV_COMBINE4
))
{
*
pCaps
->
TextureOpCaps
|=
D3DTEXOPCAPS_ADDSMOOTH
|
...
...
@@ -1970,7 +1968,15 @@ static HRESULT WINAPI IWineD3DImpl_GetDeviceCaps(IWineD3D *iface, UINT Adapter,
D3DTEXOPCAPS_MODULATECOLOR_ADDALPHA
|
D3DTEXOPCAPS_BLENDTEXTUREALPHAPM
;
}
if
(
GL_SUPPORT
(
ARB_TEXTURE_ENV_DOT3
))
*
pCaps
->
TextureOpCaps
|=
D3DTEXOPCAPS_DOTPRODUCT3
;
if
(
GL_SUPPORT
(
NV_REGISTER_COMBINERS
))
{
*
pCaps
->
TextureOpCaps
|=
D3DTEXOPCAPS_MODULATEINVALPHA_ADDCOLOR
|
D3DTEXOPCAPS_MODULATEINVCOLOR_ADDALPHA
;
}
#if 0
*pCaps->TextureOpCaps |= D3DTEXOPCAPS_BUMPENVMAP;
/* FIXME: Add
...
...
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