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
2ea57677
Commit
2ea57677
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_NORMALIZENORMALS to the state table.
parent
dd6f5a54
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
11 deletions
+13
-11
device.c
dlls/wined3d/device.c
+1
-10
state.c
dlls/wined3d/state.c
+12
-1
No files found.
dlls/wined3d/device.c
View file @
2ea57677
...
...
@@ -3391,17 +3391,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_EMISSIVEMATERIALSOURCE
:
case
WINED3DRS_LINEPATTERN
:
case
WINED3DRS_ZBIAS
:
/* D3D8 only */
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_NORMALIZENORMALS
:
if
(
Value
)
{
glEnable
(
GL_NORMALIZE
);
checkGLcall
(
"glEnable(GL_NORMALIZE);"
);
}
else
{
glDisable
(
GL_NORMALIZE
);
checkGLcall
(
"glDisable(GL_NORMALIZE);"
);
}
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_POINTSIZE
:
...
...
dlls/wined3d/state.c
View file @
2ea57677
...
...
@@ -896,6 +896,17 @@ static void state_zbias(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
static
void
state_normalize
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_NORMALIZENORMALS
])
{
glEnable
(
GL_NORMALIZE
);
checkGLcall
(
"glEnable(GL_NORMALIZE);"
);
}
else
{
glDisable
(
GL_NORMALIZE
);
checkGLcall
(
"glDisable(GL_NORMALIZE);"
);
}
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -1044,7 +1055,7 @@ const struct StateEntry StateTable[] =
{
/*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
},
{
/*143, WINED3DRS_NORMALIZENORMALS */
STATE_RENDER
(
WINED3DRS_NORMALIZENORMALS
),
state_
unknown
},
{
/*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
},
{
/*146, WINED3DRS_SPECULARMATERIALSOURCE */
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