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
51b41d99
Commit
51b41d99
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_MIN to the state table.
parent
0ec7c8b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
11 deletions
+17
-11
device.c
dlls/wined3d/device.c
+1
-10
state.c
dlls/wined3d/state.c
+16
-1
No files found.
dlls/wined3d/device.c
View file @
51b41d99
...
@@ -3393,17 +3393,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
...
@@ -3393,17 +3393,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetRenderState(IWineD3DDevice *iface, W
case
WINED3DRS_ZBIAS
:
/* D3D8 only */
case
WINED3DRS_ZBIAS
:
/* D3D8 only */
case
WINED3DRS_NORMALIZENORMALS
:
case
WINED3DRS_NORMALIZENORMALS
:
case
WINED3DRS_POINTSIZE
:
case
WINED3DRS_POINTSIZE
:
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
break
;
case
WINED3DRS_POINTSIZE_MIN
:
case
WINED3DRS_POINTSIZE_MIN
:
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
StateTable
[
STATE_RENDER
(
State
)].
apply
(
STATE_RENDER
(
State
),
This
->
stateBlock
);
tmpvalue
.
d
=
Value
;
GL_EXTCALL
(
glPointParameterfEXT
)(
GL_POINT_SIZE_MIN_EXT
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfEXT(...);"
);
}
else
{
FIXME
(
"WINED3DRS_POINTSIZE_MIN not supported on this opengl
\n
"
);
}
break
;
break
;
case
WINED3DRS_POINTSIZE_MAX
:
case
WINED3DRS_POINTSIZE_MAX
:
...
...
dlls/wined3d/state.c
View file @
51b41d99
...
@@ -920,6 +920,21 @@ static void state_psize(DWORD state, IWineD3DStateBlockImpl *stateblock) {
...
@@ -920,6 +920,21 @@ static void state_psize(DWORD state, IWineD3DStateBlockImpl *stateblock) {
checkGLcall
(
"glPointSize(...);"
);
checkGLcall
(
"glPointSize(...);"
);
}
}
static
void
state_psizemin
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE_MIN
];
GL_EXTCALL
(
glPointParameterfEXT
)(
GL_POINT_SIZE_MIN_EXT
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfEXT(...);"
);
}
else
{
FIXME
(
"WINED3DRS_POINTSIZE_MIN not supported on this opengl
\n
"
);
}
}
const
struct
StateEntry
StateTable
[]
=
const
struct
StateEntry
StateTable
[]
=
{
{
/* State name representative, apply function */
/* State name representative, apply function */
...
@@ -1080,7 +1095,7 @@ const struct StateEntry StateTable[] =
...
@@ -1080,7 +1095,7 @@ const struct StateEntry StateTable[] =
{
/*152, WINED3DRS_CLIPPLANEENABLE */
STATE_RENDER
(
WINED3DRS_CLIPPING
),
state_clipping
},
{
/*152, WINED3DRS_CLIPPLANEENABLE */
STATE_RENDER
(
WINED3DRS_CLIPPING
),
state_clipping
},
{
/*153, WINED3DRS_SOFTWAREVERTEXPROCESSING */
0
,
state_nogl
},
{
/*153, WINED3DRS_SOFTWAREVERTEXPROCESSING */
0
,
state_nogl
},
{
/*154, WINED3DRS_POINTSIZE */
STATE_RENDER
(
WINED3DRS_POINTSIZE
),
state_psize
},
{
/*154, WINED3DRS_POINTSIZE */
STATE_RENDER
(
WINED3DRS_POINTSIZE
),
state_psize
},
{
/*155, WINED3DRS_POINTSIZE_MIN */
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_
unknown
},
{
/*155, WINED3DRS_POINTSIZE_MIN */
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_
psizemin
},
{
/*156, WINED3DRS_POINTSPRITEENABLE */
STATE_RENDER
(
WINED3DRS_POINTSPRITEENABLE
),
state_unknown
},
{
/*156, WINED3DRS_POINTSPRITEENABLE */
STATE_RENDER
(
WINED3DRS_POINTSPRITEENABLE
),
state_unknown
},
{
/*157, WINED3DRS_POINTSCALEENABLE */
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_unknown
},
{
/*157, WINED3DRS_POINTSCALEENABLE */
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_unknown
},
{
/*158, WINED3DRS_POINTSCALE_A */
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_unknown
},
{
/*158, WINED3DRS_POINTSCALE_A */
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