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
ebc77732
Commit
ebc77732
authored
Jul 05, 2008
by
Stefan Dösinger
Committed by
Alexandre Julliard
Jul 18, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Move the vertexblend support check to the template.
parent
f981afd7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
14 deletions
+21
-14
state.c
dlls/wined3d/state.c
+21
-14
No files found.
dlls/wined3d/state.c
View file @
ebc77732
...
...
@@ -2628,6 +2628,25 @@ static void transform_worldex(DWORD state, IWineD3DStateBlockImpl *stateblock, W
}
}
static
void
state_vertexblend_w
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
static
BOOL
once
=
FALSE
;
switch
(
stateblock
->
renderState
[
WINED3DRS_VERTEXBLEND
])
{
case
WINED3DVBF_1WEIGHTS
:
case
WINED3DVBF_2WEIGHTS
:
case
WINED3DVBF_3WEIGHTS
:
if
(
!
once
)
{
once
=
TRUE
;
/* TODO: Implement vertex blending in drawStridedSlow */
FIXME
(
"Vertex blending enabled, but not supported by hardware
\n
"
);
}
break
;
case
WINED3DVBF_TWEENING
:
WARN
(
"Tweening not supported yet
\n
"
);
}
}
static
void
state_vertexblend
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
WineD3DContext
*
context
)
{
WINED3DVERTEXBLENDFLAGS
val
=
stateblock
->
renderState
[
WINED3DRS_VERTEXBLEND
];
...
...
@@ -2635,7 +2654,6 @@ static void state_vertexblend(DWORD state, IWineD3DStateBlockImpl *stateblock, W
case
WINED3DVBF_1WEIGHTS
:
case
WINED3DVBF_2WEIGHTS
:
case
WINED3DVBF_3WEIGHTS
:
if
(
GL_SUPPORT
(
ARB_VERTEX_BLEND
))
{
glEnable
(
GL_VERTEX_BLEND_ARB
);
checkGLcall
(
"glEnable(GL_VERTEX_BLEND_ARB)"
);
...
...
@@ -2653,24 +2671,12 @@ static void state_vertexblend(DWORD state, IWineD3DStateBlockImpl *stateblock, W
}
stateblock
->
wineD3DDevice
->
vertexBlendUsed
=
TRUE
;
}
}
else
{
static
BOOL
once
=
FALSE
;
if
(
!
once
)
{
once
=
TRUE
;
/* TODO: Implement vertex blending in drawStridedSlow */
FIXME
(
"Vertex blending enabled, but not supported by hardware
\n
"
);
}
}
break
;
case
WINED3DVBF_DISABLE
:
case
WINED3DVBF_0WEIGHTS
:
/* for Indexed vertex blending - not supported */
if
(
GL_SUPPORT
(
ARB_VERTEX_BLEND
))
{
glDisable
(
GL_VERTEX_BLEND_ARB
);
checkGLcall
(
"glDisable(GL_VERTEX_BLEND_ARB)"
);
}
else
{
TRACE
(
"Vertex blending disabled
\n
"
);
}
break
;
case
WINED3DVBF_TWEENING
:
...
...
@@ -4330,7 +4336,8 @@ const struct StateEntryTemplate ffp_vertexstate_template[] = {
{
STATE_RENDER
(
WINED3DRS_SPECULARMATERIALSOURCE
),
{
STATE_RENDER
(
WINED3DRS_COLORVERTEX
),
state_colormat
},
0
},
{
STATE_RENDER
(
WINED3DRS_AMBIENTMATERIALSOURCE
),
{
STATE_RENDER
(
WINED3DRS_COLORVERTEX
),
state_colormat
},
0
},
{
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_VERTEXBLEND
),
{
STATE_RENDER
(
WINED3DRS_VERTEXBLEND
),
state_vertexblend
},
ARB_VERTEX_BLEND
},
{
STATE_RENDER
(
WINED3DRS_VERTEXBLEND
),
{
STATE_RENDER
(
WINED3DRS_VERTEXBLEND
),
state_vertexblend_w
},
0
},
{
STATE_RENDER
(
WINED3DRS_POINTSIZE
),
{
STATE_RENDER
(
WINED3DRS_POINTSCALEENABLE
),
state_pscale
},
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
},
...
...
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