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
7740dda1
Commit
7740dda1
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 psizemin handler.
parent
710b9a76
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 @
7740dda1
...
...
@@ -1399,25 +1399,40 @@ static void state_normalize(DWORD state, IWineD3DStateBlockImpl *stateblock, Win
}
}
static
void
state_psizemin
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
static
void
state_psizemin
_w
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE_MIN
];
if
(
GL_SUPPORT
(
ARB_POINT_PARAMETERS
))
{
GL_EXTCALL
(
glPointParameterfARB
)(
GL_POINT_SIZE_MIN_ARB
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfARB(...)"
);
}
else
if
(
GL_SUPPORT
(
EXT_POINT_PARAMETERS
))
{
GL_EXTCALL
(
glPointParameterfEXT
)(
GL_POINT_SIZE_MIN_EXT
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfEXT(...)"
);
}
else
if
(
tmpvalue
.
f
!=
1
.
0
)
{
if
(
tmpvalue
.
f
!=
1
.
0
)
{
FIXME
(
"WINED3DRS_POINTSIZE_MIN not supported on this opengl, value is %f
\n
"
,
tmpvalue
.
f
);
}
}
static
void
state_psizemin_ext
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE_MIN
];
GL_EXTCALL
(
glPointParameterfEXT
)(
GL_POINT_SIZE_MIN_EXT
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfEXT(...)"
);
}
static
void
state_psizemin_arb
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
union
{
DWORD
d
;
float
f
;
}
tmpvalue
;
tmpvalue
.
d
=
stateblock
->
renderState
[
WINED3DRS_POINTSIZE_MIN
];
GL_EXTCALL
(
glPointParameterfARB
)(
GL_POINT_SIZE_MIN_ARB
,
tmpvalue
.
f
);
checkGLcall
(
"glPointParameterfARB(...)"
);
}
static
void
state_psizemax
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
union
{
DWORD
d
;
...
...
@@ -4301,7 +4316,9 @@ const struct StateEntryTemplate ffp_vertexstate_template[] = {
{
STATE_RENDER
(
WINED3DRS_EMISSIVEMATERIALSOURCE
),
{
STATE_RENDER
(
WINED3DRS_COLORVERTEX
),
state_colormat
},
0
},
{
STATE_RENDER
(
WINED3DRS_VERTEXBLEND
),
{
STATE_RENDER
(
WINED3DRS_VERTEXBLEND
),
state_vertexblend
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_psizemin
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_psizemin_arb
},
ARB_POINT_PARAMETERS
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_psizemin_ext
},
EXT_POINT_PARAMETERS
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
{
STATE_RENDER
(
WINED3DRS_POINTSIZE_MIN
),
state_psizemin_w
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSPRITEENABLE
),
{
STATE_RENDER
(
WINED3DRS_POINTSPRITEENABLE
),
state_pointsprite
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSCALE_A
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
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