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
b79dc388
Commit
b79dc388
authored
Dec 20, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 21, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DVERTEXBLENDFLAGS typedef.
parent
0feb72f0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
20 deletions
+22
-20
state.c
dlls/wined3d/state.c
+12
-10
stateblock.c
dlls/wined3d/stateblock.c
+1
-1
wined3d.h
include/wine/wined3d.h
+9
-9
No files found.
dlls/wined3d/state.c
View file @
b79dc388
...
...
@@ -3780,10 +3780,11 @@ static void transform_worldex(struct wined3d_context *context, const struct wine
static
void
state_vertexblend_w
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
WINED3DVERTEXBLENDFLAGS
f
=
state
->
render_states
[
WINED3D_RS_VERTEXBLEND
];
enum
wined3d_vertex_blend_flags
f
=
state
->
render_states
[
WINED3D_RS_VERTEXBLEND
];
static
unsigned
int
once
;
if
(
f
==
WINED3DVBF_DISABLE
)
return
;
if
(
f
==
WINED3D_VBF_DISABLE
)
return
;
if
(
!
once
++
)
FIXME
(
"Vertex blend flags %#x not supported.
\n
"
,
f
);
else
WARN
(
"Vertex blend flags %#x not supported.
\n
"
,
f
);
...
...
@@ -3791,15 +3792,16 @@ static void state_vertexblend_w(struct wined3d_context *context, const struct wi
static
void
state_vertexblend
(
struct
wined3d_context
*
context
,
const
struct
wined3d_state
*
state
,
DWORD
state_id
)
{
WINED3DVERTEXBLENDFLAGS
val
=
state
->
render_states
[
WINED3D_RS_VERTEXBLEND
];
enum
wined3d_vertex_blend_flags
val
=
state
->
render_states
[
WINED3D_RS_VERTEXBLEND
];
struct
wined3d_device
*
device
=
context
->
swapchain
->
device
;
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
static
unsigned
int
once
;
switch
(
val
)
{
case
WINED3DVBF_1WEIGHTS
:
case
WINED3DVBF_2WEIGHTS
:
case
WINED3DVBF_3WEIGHTS
:
switch
(
val
)
{
case
WINED3D_VBF_1WEIGHTS
:
case
WINED3D_VBF_2WEIGHTS
:
case
WINED3D_VBF_3WEIGHTS
:
glEnable
(
GL_VERTEX_BLEND_ARB
);
checkGLcall
(
"glEnable(GL_VERTEX_BLEND_ARB)"
);
...
...
@@ -3820,12 +3822,12 @@ static void state_vertexblend(struct wined3d_context *context, const struct wine
}
break
;
case
WINED3DVBF_TWEENING
:
case
WINED3DVBF_0WEIGHTS
:
/* Indexed vertex blending, not supported. */
case
WINED3D
_
VBF_TWEENING
:
case
WINED3D
_
VBF_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
WINED3D
_
VBF_DISABLE
:
glDisable
(
GL_VERTEX_BLEND_ARB
);
checkGLcall
(
"glDisable(GL_VERTEX_BLEND_ARB)"
);
break
;
...
...
dlls/wined3d/stateblock.c
View file @
b79dc388
...
...
@@ -1180,7 +1180,7 @@ void stateblock_init_default_state(struct wined3d_stateblock *stateblock)
state
->
render_states
[
WINED3D_RS_SPECULARMATERIALSOURCE
]
=
WINED3DMCS_COLOR2
;
state
->
render_states
[
WINED3D_RS_AMBIENTMATERIALSOURCE
]
=
WINED3DMCS_MATERIAL
;
state
->
render_states
[
WINED3D_RS_EMISSIVEMATERIALSOURCE
]
=
WINED3DMCS_MATERIAL
;
state
->
render_states
[
WINED3D_RS_VERTEXBLEND
]
=
WINED3DVBF_DISABLE
;
state
->
render_states
[
WINED3D_RS_VERTEXBLEND
]
=
WINED3D
_
VBF_DISABLE
;
state
->
render_states
[
WINED3D_RS_CLIPPLANEENABLE
]
=
0
;
state
->
render_states
[
WINED3D_RS_SOFTWAREVERTEXPROCESSING
]
=
FALSE
;
tmpfloat
.
f
=
1
.
0
f
;
...
...
include/wine/wined3d.h
View file @
b79dc388
...
...
@@ -411,15 +411,15 @@ enum wined3d_blend_op
WINED3D_BLEND_OP_MAX
=
5
,
};
typedef
enum
_WINED3DVERTEXBLENDFLAGS
{
WINED3D
VBF_DISABLE
=
0
,
WINED3D
VBF_1WEIGHTS
=
1
,
WINED3D
VBF_2WEIGHTS
=
2
,
WINED3D
VBF_3WEIGHTS
=
3
,
WINED3D
VBF_TWEENING
=
255
,
WINED3D
VBF_0WEIGHTS
=
256
}
WINED3DVERTEXBLENDFLAGS
;
enum
wined3d_vertex_blend_flags
{
WINED3D
_VBF_DISABLE
=
0
,
WINED3D
_VBF_1WEIGHTS
=
1
,
WINED3D
_VBF_2WEIGHTS
=
2
,
WINED3D
_VBF_3WEIGHTS
=
3
,
WINED3D
_VBF_TWEENING
=
255
,
WINED3D
_VBF_0WEIGHTS
=
256
,
};
typedef
enum
_WINED3DCMPFUNC
{
...
...
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