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
0ec7c8b5
Commit
0ec7c8b5
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_POINTSIZE to the state table.
parent
2ea57677
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
device.c
dlls/wined3d/device.c
+1
-8
state.c
dlls/wined3d/state.c
+14
-1
No files found.
dlls/wined3d/device.c
View file @
0ec7c8b5
...
...
@@ -3392,15 +3392,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_LINEPATTERN
:
case
WINED3DRS_ZBIAS
:
/* D3D8 only */
case
WINED3DRS_NORMALIZENORMALS
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_POINTSIZE
:
/* FIXME: check that pointSize isn't outside glGetFloatv( GL_POINT_SIZE_MAX_ARB, &maxSize ); or -ve */
tmpvalue
.
d
=
Value
;
TRACE
(
"Set point size to %f
\n
"
,
tmpvalue
.
f
);
glPointSize
(
tmpvalue
.
f
);
checkGLcall
(
"glPointSize(...);"
);
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_POINTSIZE_MIN
:
...
...
dlls/wined3d/state.c
View file @
0ec7c8b5
...
...
@@ -907,6 +907,19 @@ static void state_normalize(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
static
void
state_psize
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
/* FIXME: check that pointSize isn't outside glGetFloatv( GL_POINT_SIZE_MAX_ARB, &maxSize ); or -ve */
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE
];
TRACE
(
"Set point size to %f
\n
"
,
tmpvalue
.
f
);
glPointSize
(
tmpvalue
.
f
);
checkGLcall
(
"glPointSize(...);"
);
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -1066,7 +1079,7 @@ const struct StateEntry StateTable[] =
{
/*151, WINED3DRS_VERTEXBLEND */
0
,
state_nogl
},
{
/*152, WINED3DRS_CLIPPLANEENABLE */
STATE_RENDER
(
WINED3DRS_CLIPPING
),
state_clipping
},
{
/*153, WINED3DRS_SOFTWAREVERTEXPROCESSING */
0
,
state_nogl
},
{
/*154, WINED3DRS_POINTSIZE */
STATE_RENDER
(
WINED3DRS_POINTSIZE
),
state_
unknown
},
{
/*154, WINED3DRS_POINTSIZE */
STATE_RENDER
(
WINED3DRS_POINTSIZE
),
state_
psize
},
{
/*155, WINED3DRS_POINTSIZE_MIN */
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_unknown
},
{
/*156, WINED3DRS_POINTSPRITEENABLE */
STATE_RENDER
(
WINED3DRS_POINTSPRITEENABLE
),
state_unknown
},
{
/*157, WINED3DRS_POINTSCALEENABLE */
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_unknown
},
...
...
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