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
94e45534
Commit
94e45534
authored
Jul 05, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 17, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Split the psizemax state handler.
parent
7740dda1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
10 deletions
+27
-10
state.c
dlls/wined3d/state.c
+27
-10
No files found.
dlls/wined3d/state.c
View file @
94e45534
...
...
@@ -1433,21 +1433,36 @@ static void state_psizemin_arb(DWORD state, IWineD3DStateBlockImpl *stateblock,
checkGLcall
(
"glPointParameterfARB(...)"
);
}
static
void
state_psizemax
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
static
void
state_psizemax
_arb
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE_MAX
];
if
(
GL_SUPPORT
(
ARB_POINT_PARAMETERS
))
{
GL_EXTCALL
(
glPointParameterfARB
)(
GL_POINT_SIZE_MAX_ARB
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfARB(...)"
);
}
else
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
GL_EXTCALL
(
glPointParameterfEXT
)(
GL_POINT_SIZE_MAX_EXT
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfEXT(...)"
);
}
else
if
(
tmpvalue
.
f
!=
64
.
0
)
{
GL_EXTCALL
(
glPointParameterfARB
)(
GL_POINT_SIZE_MAX_ARB
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfARB(...)"
);
}
static
void
state_psizemax_ext
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE_MAX
];
GL_EXTCALL
(
glPointParameterfEXT
)(
GL_POINT_SIZE_MAX_EXT
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfEXT(...)"
);
}
static
void
state_psizemax_w
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE_MAX
];
if
(
tmpvalue
.
f
!=
64
.
0
)
{
FIXME
(
"WINED3DRS_POINTSIZE_MAX not supported on this opengl, value is %f
\n
"
,
tmpvalue
.
f
);
}
}
...
...
@@ -4324,7 +4339,9 @@ const struct StateEntryTemplate ffp_vertexstate_template[] = {
{
STATE_RENDER
(
WINED3DRS_POINTSCALE_A
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSCALE_B
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSCALE_C
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
state_psizemax
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
state_psizemax_arb
},
ARB_POINT_PARAMETERS
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
state_psizemax_ext
},
EXT_POINT_PARAMETERS
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MAX
),
state_psizemax_w
},
0
},
/* Samplers for NP2 texture matrix adjustions */
{
STATE_SAMPLER
(
0
),
{
STATE_SAMPLER
(
0
),
sampler_texmatrix
},
0
},
{
STATE_SAMPLER
(
1
),
{
STATE_SAMPLER
(
1
),
sampler_texmatrix
},
0
},
...
...
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