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
9a0e4b54
Commit
9a0e4b54
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_MAX to the state table.
parent
51b41d99
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
13 deletions
+19
-13
device.c
dlls/wined3d/device.c
+3
-12
state.c
dlls/wined3d/state.c
+16
-1
No files found.
dlls/wined3d/device.c
View file @
9a0e4b54
...
...
@@ -3394,23 +3394,14 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_NORMALIZENORMALS
:
case
WINED3DRS_POINTSIZE
:
case
WINED3DRS_POINTSIZE_MIN
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_POINTSIZE_MAX
:
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
tmpvalue
.
d
=
Value
;
GL_EXTCALL
(
glPointParameterfEXT
)(
GL_POINT_SIZE_MAX_EXT
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfEXT(...);"
);
}
else
{
FIXME
(
"WINED3DRS_POINTSIZE_MAX not supported on this opengl
\n
"
);
}
break
;
case
WINED3DRS_POINTSCALE_A
:
case
WINED3DRS_POINTSCALE_B
:
case
WINED3DRS_POINTSCALE_C
:
case
WINED3DRS_POINTSCALEENABLE
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
{
/*
* POINTSCALEENABLE controls how point size value is treated. If set to
...
...
dlls/wined3d/state.c
View file @
9a0e4b54
...
...
@@ -935,6 +935,21 @@ static void state_psizemin(DWORD state, IWineD3DStateBlockImpl *stateblock) {
}
}
static
void
state_psizemax
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE_MAX
];
GL_EXTCALL
(
glPointParameterfEXT
)(
GL_POINT_SIZE_MAX_EXT
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfEXT(...);"
);
}
else
{
FIXME
(
"WINED3DRS_POINTSIZE_MAX not supported on this opengl
\n
"
);
}
}
const
struct
StateEntry
StateTable
[]
=
{
/* State name representative, apply function */
...
...
@@ -1106,7 +1121,7 @@ const struct StateEntry StateTable[] =
{
/*163, WINED3DRS_PATCHEDGESTYLE */
STATE_RENDER
(
WINED3DRS_PATCHEDGESTYLE
),
state_unknown
},
{
/*164, WINED3DRS_PATCHSEGMENTS */
STATE_RENDER
(
WINED3DRS_PATCHSEGMENTS
),
state_unknown
},
{
/*165, WINED3DRS_DEBUGMONITORTOKEN */
STATE_RENDER
(
WINED3DRS_DEBUGMONITORTOKEN
),
state_unknown
},
{
/*166, WINED3DRS_POINTSIZE_MAX */
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
state_
unknown
},
{
/*166, WINED3DRS_POINTSIZE_MAX */
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
state_
psizemax
},
{
/*167, WINED3DRS_INDEXEDVERTEXBLENDENABLE */
0
,
state_nogl
},
{
/*168, WINED3DRS_COLORWRITEENABLE */
STATE_RENDER
(
WINED3DRS_COLORWRITEENABLE
),
state_unknown
},
{
/*169, Undefined */
0
,
state_undefined
},
...
...
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