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
9c1b6581
Commit
9c1b6581
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: Move the point sprite support test into the template.
parent
94e45534
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
state.c
dlls/wined3d/state.c
+6
-4
No files found.
dlls/wined3d/state.c
View file @
9c1b6581
...
...
@@ -1586,13 +1586,14 @@ static void state_lastpixel(DWORD state, IWineD3DStateBlockImpl *stateblock, Win
}
}
static
void
state_pointsprite
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
static
void
state_pointsprite
_w
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
/* TODO: NV_POINT_SPRITE */
if
(
!
GL_SUPPORT
(
ARB_POINT_SPRITE
)
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_POINTSPRITEENABLE
]
)
{
TRACE
(
"Point sprites not supported
\n
"
);
return
;
}
}
static
void
state_pointsprite
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
if
(
stateblock
->
renderState
[
WINED3DRS_POINTSPRITEENABLE
])
{
glEnable
(
GL_POINT_SPRITE_ARB
);
checkGLcall
(
"glEnable(GL_POINT_SPRITE_ARB)"
);
...
...
@@ -4334,7 +4335,8 @@ const struct StateEntryTemplate ffp_vertexstate_template[] = {
{
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_POINTSPRITEENABLE
),
{
STATE_RENDER
(
WINED3DRS_POINTSPRITEENABLE
),
state_pointsprite
},
ARB_POINT_SPRITE
},
{
STATE_RENDER
(
WINED3DRS_POINTSPRITEENABLE
),
{
STATE_RENDER
(
WINED3DRS_POINTSPRITEENABLE
),
state_pointsprite_w
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSCALE_A
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSCALE_B
),
{
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