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
3bb41771
Commit
3bb41771
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 WINED3DRS_NORMALDEGREE to the state table.
parent
052197ac
Hide 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 @
3bb41771
...
...
@@ -3429,6 +3429,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_PATCHSEGMENTS
:
case
WINED3DRS_DEBUGMONITORTOKEN
:
case
WINED3DRS_POSITIONDEGREE
:
case
WINED3DRS_NORMALDEGREE
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
...
...
@@ -3439,13 +3440,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
return
WINED3DERR_INVALIDCALL
;
}
case
WINED3DRS_NORMALDEGREE
:
{
if
(
WINED3DDEGREE_LINEAR
!=
Value
)
ERR
(
"(%p)->(%s,%d) not yet implemented
\n
"
,
This
,
debug_d3drenderstate
(
State
),
Value
);
break
;
}
case
WINED3DRS_MINTESSELLATIONLEVEL
:
case
WINED3DRS_MAXTESSELLATIONLEVEL
:
case
WINED3DRS_ADAPTIVETESS_X
:
...
...
dlls/wined3d/state.c
View file @
3bb41771
...
...
@@ -1196,6 +1196,12 @@ static void state_positiondegree(DWORD state, IWineD3DStateBlockImpl *stateblock
ERR
(
"(WINED3DRS_POSITIONDEGREE,%d) not yet implemented
\n
"
,
stateblock
->
renderState
[
WINED3DRS_POSITIONDEGREE
]);
}
static
void
state_normaldegree
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
TRACE
(
"Stub
\n
"
);
if
(
stateblock
->
renderState
[
WINED3DRS_NORMALDEGREE
]
!=
D3DDEGREE_LINEAR
)
ERR
(
"(WINED3DRS_NORMALDEGREE,%d) not yet implemented
\n
"
,
stateblock
->
renderState
[
WINED3DRS_NORMALDEGREE
]);
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -1374,7 +1380,7 @@ const struct StateEntry StateTable[] =
{
/*170, WINED3DRS_TWEENFACTOR */
0
,
state_nogl
},
{
/*171, WINED3DRS_BLENDOP */
STATE_RENDER
(
WINED3DRS_BLENDOP
),
state_blendop
},
{
/*172, WINED3DRS_POSITIONDEGREE */
STATE_RENDER
(
WINED3DRS_POSITIONDEGREE
),
state_positiondegree
},
{
/*173, WINED3DRS_NORMALDEGREE */
STATE_RENDER
(
WINED3DRS_NORMALDEGREE
),
state_
unknown
},
{
/*173, WINED3DRS_NORMALDEGREE */
STATE_RENDER
(
WINED3DRS_NORMALDEGREE
),
state_
normaldegree
},
/*172, WINED3DRS_POSITIONORDER */
/* Value assigned to 2 state names */
/*173, WINED3DRS_NORMALORDER */
/* Value assigned to 2 state names */
{
/*174, WINED3DRS_SCISSORTESTENABLE */
STATE_RENDER
(
WINED3DRS_SCISSORTESTENABLE
),
state_scissor
},
...
...
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