Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
580b9961
Commit
580b9961
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_LOCALVIEWER to the state table.
parent
4c64b86f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
device.c
dlls/wined3d/device.c
+1
-8
state.c
dlls/wined3d/state.c
+11
-1
No files found.
dlls/wined3d/device.c
View file @
580b9961
...
...
@@ -3403,17 +3403,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_COLORWRITEENABLE1
:
case
WINED3DRS_COLORWRITEENABLE2
:
case
WINED3DRS_COLORWRITEENABLE3
:
case
WINED3DRS_LOCALVIEWER
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_LOCALVIEWER
:
{
GLint
state
=
(
Value
)
?
1
:
0
;
TRACE
(
"Local Viewer Enable to %ul
\n
"
,
(
BOOL
)
Value
);
glLightModeli
(
GL_LIGHT_MODEL_LOCAL_VIEWER
,
state
);
}
break
;
case
WINED3DRS_LASTPIXEL
:
{
if
(
Value
)
{
...
...
dlls/wined3d/state.c
View file @
580b9961
...
...
@@ -1026,6 +1026,16 @@ static void state_colorwrite(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
static
void
state_localviewer
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_LOCALVIEWER
])
{
glLightModeli
(
GL_LIGHT_MODEL_LOCAL_VIEWER
,
1
);
checkGLcall
(
"glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 1)"
);
}
else
{
glLightModeli
(
GL_LIGHT_MODEL_LOCAL_VIEWER
,
0
);
checkGLcall
(
"glLightModeli(GL_LIGHT_MODEL_LOCAL_VIEWER, 0)"
);
}
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -1173,7 +1183,7 @@ const struct StateEntry StateTable[] =
{
/*139, WINED3DRS_AMBIENT */
STATE_RENDER
(
WINED3DRS_AMBIENT
),
state_ambient
},
{
/*140, WINED3DRS_FOGVERTEXMODE */
STATE_RENDER
(
WINED3DRS_FOGENABLE
),
state_fog
},
{
/*141, WINED3DRS_COLORVERTEX */
STATE_RENDER
(
WINED3DRS_COLORVERTEX
),
state_colormat
},
{
/*142, WINED3DRS_LOCALVIEWER */
STATE_RENDER
(
WINED3DRS_LOCALVIEWER
),
state_
unknown
},
{
/*142, WINED3DRS_LOCALVIEWER */
STATE_RENDER
(
WINED3DRS_LOCALVIEWER
),
state_
localviewer
},
{
/*143, WINED3DRS_NORMALIZENORMALS */
STATE_RENDER
(
WINED3DRS_NORMALIZENORMALS
),
state_normalize
},
{
/*144, WINED3DRS_COLORKEYBLENDENABLE */
STATE_RENDER
(
WINED3DRS_COLORKEYBLENDENABLE
),
state_unknown
},
{
/*145, WINED3DRS_DIFFUSEMATERIALSOURCE */
STATE_RENDER
(
WINED3DRS_COLORVERTEX
),
state_colormat
},
...
...
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