Commit 273dcbf5 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get rid of the unused "streams" field from struct wined3d_vertex_declaration.

parent b35045ba
......@@ -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;
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment