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
8a5bf91b
Commit
8a5bf91b
authored
Dec 10, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move SRGBWRITEENABLE to the state table.
parent
cd0d0a70
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
device.c
dlls/wined3d/device.c
+1
-7
state.c
dlls/wined3d/state.c
+7
-1
No files found.
dlls/wined3d/device.c
View file @
8a5bf91b
...
@@ -3437,6 +3437,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
...
@@ -3437,6 +3437,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_ADAPTIVETESS_Z
:
case
WINED3DRS_ADAPTIVETESS_Z
:
case
WINED3DRS_ADAPTIVETESS_W
:
case
WINED3DRS_ADAPTIVETESS_W
:
case
WINED3DRS_ENABLEADAPTIVETESSELLATION
:
case
WINED3DRS_ENABLEADAPTIVETESSELLATION
:
case
WINED3DRS_SRGBWRITEENABLE
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
break
;
...
@@ -3447,13 +3448,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
...
@@ -3447,13 +3448,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
return
WINED3DERR_INVALIDCALL
;
return
WINED3DERR_INVALIDCALL
;
}
}
case
WINED3DRS_SRGBWRITEENABLE
:
{
if
(
Value
)
ERR
(
"(%p)->(%s,%d) not yet implemented
\n
"
,
This
,
debug_d3drenderstate
(
State
),
Value
);
break
;
}
case
WINED3DRS_SEPARATEALPHABLENDENABLE
:
case
WINED3DRS_SEPARATEALPHABLENDENABLE
:
{
{
if
(
Value
)
if
(
Value
)
...
...
dlls/wined3d/state.c
View file @
8a5bf91b
...
@@ -1208,6 +1208,12 @@ static void state_tessellation(DWORD state, IWineD3DStateBlockImpl *stateblock)
...
@@ -1208,6 +1208,12 @@ static void state_tessellation(DWORD state, IWineD3DStateBlockImpl *stateblock)
FIXME
(
"(WINED3DRS_ENABLEADAPTIVETESSELLATION,%d) not yet implemented
\n
"
,
stateblock
->
renderState
[
WINED3DRS_ENABLEADAPTIVETESSELLATION
]);
FIXME
(
"(WINED3DRS_ENABLEADAPTIVETESSELLATION,%d) not yet implemented
\n
"
,
stateblock
->
renderState
[
WINED3DRS_ENABLEADAPTIVETESSELLATION
]);
}
}
static
void
state_srgbwrite
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_SRGBWRITEENABLE
])
ERR
(
"Render state WINED3DRS_SRGBWRITEENABLE not yet implemented
\n
"
);
}
const
struct
StateEntry
StateTable
[]
=
const
struct
StateEntry
StateTable
[]
=
{
{
/* State name representative, apply function */
/* State name representative, apply function */
...
@@ -1409,7 +1415,7 @@ const struct StateEntry StateTable[] =
...
@@ -1409,7 +1415,7 @@ const struct StateEntry StateTable[] =
{
/*191, WINED3DRS_COLORWRITEENABLE2 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*191, WINED3DRS_COLORWRITEENABLE2 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*192, WINED3DRS_COLORWRITEENABLE3 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*192, WINED3DRS_COLORWRITEENABLE3 */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_colorwrite
},
{
/*193, WINED3DRS_BLENDFACTOR */
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_blend
},
{
/*193, WINED3DRS_BLENDFACTOR */
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_blend
},
{
/*194, WINED3DRS_SRGBWRITEENABLE */
0
,
state_nogl
},
{
/*194, WINED3DRS_SRGBWRITEENABLE */
STATE_RENDER
(
WINED3DRS_SRGBWRITEENABLE
),
state_srgbwrite
},
{
/*195, WINED3DRS_DEPTHBIAS */
STATE_RENDER
(
WINED3DRS_DEPTHBIAS
),
state_depthbias
},
{
/*195, WINED3DRS_DEPTHBIAS */
STATE_RENDER
(
WINED3DRS_DEPTHBIAS
),
state_depthbias
},
{
/*196, undefined */
0
,
state_undefined
},
{
/*196, undefined */
0
,
state_undefined
},
{
/*197, undefined */
0
,
state_undefined
},
{
/*197, undefined */
0
,
state_undefined
},
...
...
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