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
6e1ed1c1
Commit
6e1ed1c1
authored
Mar 31, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Mar 31, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Print a FIXME/WARN for all unsupported vertex blend flags.
parent
97ea3b63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
23 deletions
+11
-23
state.c
dlls/wined3d/state.c
+11
-23
No files found.
dlls/wined3d/state.c
View file @
6e1ed1c1
...
...
@@ -3780,27 +3780,19 @@ static void transform_worldex(DWORD state, IWineD3DStateBlockImpl *stateblock, s
static
void
state_vertexblend_w
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
wined3d_context
*
context
)
{
static
BOOL
once
=
FALSE
;
WINED3DVERTEXBLENDFLAGS
f
=
stateblock
->
renderState
[
WINED3DRS_VERTEXBLEND
];
static
unsigned
int
once
;
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
;
if
(
f
==
WINED3DVBF_DISABLE
)
return
;
case
WINED3DVBF_TWEENING
:
WARN
(
"Tweening not supported yet
\n
"
);
}
if
(
!
once
++
)
FIXME
(
"Vertex blend flags %#x not supported.
\n
"
,
f
);
else
WARN
(
"Vertex blend flags %#x not supported.
\n
"
,
f
);
}
static
void
state_vertexblend
(
DWORD
state
,
IWineD3DStateBlockImpl
*
stateblock
,
struct
wined3d_context
*
context
)
{
WINED3DVERTEXBLENDFLAGS
val
=
stateblock
->
renderState
[
WINED3DRS_VERTEXBLEND
];
static
unsigned
int
once
;
switch
(
val
)
{
case
WINED3DVBF_1WEIGHTS
:
...
...
@@ -3828,19 +3820,15 @@ static void state_vertexblend(DWORD state, IWineD3DStateBlockImpl *stateblock, s
}
break
;
case
WINED3DVBF_TWEENING
:
case
WINED3DVBF_0WEIGHTS
:
/* Indexed vertex blending, not supported. */
if
(
!
once
++
)
FIXME
(
"Vertex blend flags %#x not supported.
\n
"
,
val
);
else
WARN
(
"Vertex blend flags %#x not supported.
\n
"
,
val
);
/* Fall through. */
case
WINED3DVBF_DISABLE
:
case
WINED3DVBF_0WEIGHTS
:
/* for Indexed vertex blending - not supported */
glDisable
(
GL_VERTEX_BLEND_ARB
);
checkGLcall
(
"glDisable(GL_VERTEX_BLEND_ARB)"
);
break
;
case
WINED3DVBF_TWEENING
:
/* Just set the vertex weight for weight 0, enable vertex blending and hope the app doesn't have
* vertex weights in the vertices?
* For now we don't report that as supported, so a warn should suffice
*/
WARN
(
"Tweening not supported yet
\n
"
);
break
;
}
}
...
...
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