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
bb622e81
Commit
bb622e81
authored
Dec 08, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move WINED3DRS_DITHERENABLE to the state table.
parent
68f10822
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
device.c
dlls/wined3d/device.c
+1
-11
state.c
dlls/wined3d/state.c
+11
-1
No files found.
dlls/wined3d/device.c
View file @
bb622e81
...
@@ -3441,18 +3441,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
...
@@ -3441,18 +3441,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_ZENABLE
:
case
WINED3DRS_ZENABLE
:
case
WINED3DRS_CULLMODE
:
case
WINED3DRS_CULLMODE
:
case
WINED3DRS_SHADEMODE
:
case
WINED3DRS_SHADEMODE
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_DITHERENABLE
:
case
WINED3DRS_DITHERENABLE
:
if
(
Value
)
{
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
glEnable
(
GL_DITHER
);
checkGLcall
(
"glEnable GL_DITHER"
);
}
else
{
glDisable
(
GL_DITHER
);
checkGLcall
(
"glDisable GL_DITHER"
);
}
break
;
break
;
case
WINED3DRS_ZWRITEENABLE
:
case
WINED3DRS_ZWRITEENABLE
:
...
...
dlls/wined3d/state.c
View file @
bb622e81
...
@@ -172,6 +172,16 @@ static void state_shademode(DWORD state, IWineD3DStateBlockImpl *stateblock) {
...
@@ -172,6 +172,16 @@ static void state_shademode(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
}
}
static
void
state_ditherenable
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_DITHERENABLE
])
{
glEnable
(
GL_DITHER
);
checkGLcall
(
"glEnable GL_DITHER"
);
}
else
{
glDisable
(
GL_DITHER
);
checkGLcall
(
"glDisable GL_DITHER"
);
}
}
const
struct
StateEntry
StateTable
[]
=
const
struct
StateEntry
StateTable
[]
=
{
{
/* State name representative, apply function */
/* State name representative, apply function */
...
@@ -201,7 +211,7 @@ const struct StateEntry StateTable[] =
...
@@ -201,7 +211,7 @@ const struct StateEntry StateTable[] =
{
/* 23, WINED3DRS_ZFUNC */
STATE_RENDER
(
WINED3DRS_ZFUNC
),
state_unknown
},
{
/* 23, WINED3DRS_ZFUNC */
STATE_RENDER
(
WINED3DRS_ZFUNC
),
state_unknown
},
{
/* 24, WINED3DRS_ALPHAREF */
STATE_RENDER
(
WINED3DRS_ALPHATESTENABLE
),
state_unknown
},
{
/* 24, WINED3DRS_ALPHAREF */
STATE_RENDER
(
WINED3DRS_ALPHATESTENABLE
),
state_unknown
},
{
/* 25, WINED3DRS_ALPHAFUNC */
STATE_RENDER
(
WINED3DRS_ALPHATESTENABLE
),
state_unknown
},
{
/* 25, WINED3DRS_ALPHAFUNC */
STATE_RENDER
(
WINED3DRS_ALPHATESTENABLE
),
state_unknown
},
{
/* 26, WINED3DRS_DITHERENABLE */
STATE_RENDER
(
WINED3DRS_DITHERENABLE
),
state_
unknown
},
{
/* 26, WINED3DRS_DITHERENABLE */
STATE_RENDER
(
WINED3DRS_DITHERENABLE
),
state_
ditherenable
},
{
/* 27, WINED3DRS_ALPHABLENDENABLE */
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_unknown
},
{
/* 27, WINED3DRS_ALPHABLENDENABLE */
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_unknown
},
{
/* 28, WINED3DRS_FOGENABLE */
STATE_RENDER
(
WINED3DRS_FOGENABLE
),
state_unknown
},
{
/* 28, WINED3DRS_FOGENABLE */
STATE_RENDER
(
WINED3DRS_FOGENABLE
),
state_unknown
},
{
/* 29, WINED3DRS_SPECULARENABLE */
STATE_RENDER
(
WINED3DRS_SPECULARENABLE
),
state_unknown
},
{
/* 29, WINED3DRS_SPECULARENABLE */
STATE_RENDER
(
WINED3DRS_SPECULARENABLE
),
state_unknown
},
...
...
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