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
273dcbf5
Commit
273dcbf5
authored
May 27, 2013
by
Henri Verbeet
Committed by
Alexandre Julliard
May 27, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the unused "streams" field from struct wined3d_vertex_declaration.
parent
b35045ba
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
12 deletions
+2
-12
vertexdeclaration.c
dlls/wined3d/vertexdeclaration.c
+0
-8
wined3d_private.h
dlls/wined3d/wined3d_private.h
+2
-4
No files found.
dlls/wined3d/vertexdeclaration.c
View file @
273dcbf5
...
...
@@ -164,7 +164,6 @@ static HRESULT vertexdeclaration_init(struct wined3d_vertex_declaration *declara
void
*
parent
,
const
struct
wined3d_parent_ops
*
parent_ops
)
{
const
struct
wined3d_gl_info
*
gl_info
=
&
device
->
adapter
->
gl_info
;
WORD
preloaded
=
0
;
/* MAX_STREAMS, 16 */
unsigned
int
i
;
if
(
TRACE_ON
(
d3d_decl
))
...
...
@@ -224,13 +223,6 @@ static HRESULT vertexdeclaration_init(struct wined3d_vertex_declaration *declara
return
E_FAIL
;
}
if
(
!
(
preloaded
&
(
1
<<
e
->
input_slot
)))
{
declaration
->
streams
[
declaration
->
num_streams
]
=
e
->
input_slot
;
++
declaration
->
num_streams
;
preloaded
|=
1
<<
e
->
input_slot
;
}
if
(
elements
[
i
].
format
==
WINED3DFMT_R16G16_FLOAT
||
elements
[
i
].
format
==
WINED3DFMT_R16G16B16A16_FLOAT
)
{
if
(
!
gl_info
->
supported
[
ARB_HALF_FLOAT_VERTEX
])
declaration
->
half_float_conv_needed
=
TRUE
;
...
...
dlls/wined3d/wined3d_private.h
View file @
273dcbf5
...
...
@@ -2239,10 +2239,8 @@ struct wined3d_vertex_declaration
struct
wined3d_vertex_declaration_element
*
elements
;
UINT
element_count
;
DWORD
streams
[
MAX_STREAMS
];
UINT
num_streams
;
BOOL
position_transformed
;
BOOL
half_float_conv_needed
;
BOOL
position_transformed
;
BOOL
half_float_conv_needed
;
};
struct
wined3d_saved_states
...
...
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