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
c5344709
Commit
c5344709
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_LASTPIXEL to the state table.
parent
580b9961
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
device.c
dlls/wined3d/device.c
+1
-10
state.c
dlls/wined3d/state.c
+9
-1
No files found.
dlls/wined3d/device.c
View file @
c5344709
...
...
@@ -3404,19 +3404,10 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_COLORWRITEENABLE2
:
case
WINED3DRS_COLORWRITEENABLE3
:
case
WINED3DRS_LOCALVIEWER
:
case
WINED3DRS_LASTPIXEL
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_LASTPIXEL
:
{
if
(
Value
)
{
TRACE
(
"Last Pixel Drawing Enabled
\n
"
);
}
else
{
FIXME
(
"Last Pixel Drawing Disabled, not handled yet
\n
"
);
}
}
break
;
case
WINED3DRS_SOFTWAREVERTEXPROCESSING
:
{
if
(
Value
)
{
...
...
dlls/wined3d/state.c
View file @
c5344709
...
...
@@ -1036,6 +1036,14 @@ static void state_localviewer(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
static
void
state_lastpixel
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_LASTPIXEL
])
{
TRACE
(
"Last Pixel Drawing Enabled
\n
"
);
}
else
{
FIXME
(
"Last Pixel Drawing Disabled, not handled yet
\n
"
);
}
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -1055,7 +1063,7 @@ const struct StateEntry StateTable[] =
{
/* 13, WINED3DRS_PLANEMASK */
STATE_RENDER
(
WINED3DRS_PLANEMASK
),
state_unknown
},
{
/* 14, WINED3DRS_ZWRITEENABLE */
STATE_RENDER
(
WINED3DRS_ZWRITEENABLE
),
state_zwritenable
},
{
/* 15, WINED3DRS_ALPHATESTENABLE */
STATE_RENDER
(
WINED3DRS_ALPHATESTENABLE
),
state_alpha
},
{
/* 16, WINED3DRS_LASTPIXEL */
STATE_RENDER
(
WINED3DRS_LASTPIXEL
),
state_
unknown
},
{
/* 16, WINED3DRS_LASTPIXEL */
STATE_RENDER
(
WINED3DRS_LASTPIXEL
),
state_
lastpixel
},
{
/* 17, WINED3DRS_TEXTUREMAG */
0
/* Handled in ddraw */
,
state_undefined
},
{
/* 18, WINED3DRS_TEXTUREMIN */
0
/* Handled in ddraw */
,
state_undefined
},
{
/* 19, WINED3DRS_SRCBLEND */
STATE_RENDER
(
WINED3DRS_ALPHABLENDENABLE
),
state_blend
},
...
...
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