Commit 2f67b139 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Set the initial primitive type to WINED3D_PT_UNDEFINED.

parent 74ab8e8c
......@@ -90,7 +90,8 @@ GLenum gl_primitive_type_from_d3d(enum wined3d_primitive_type primitive_type)
default:
FIXME("Unhandled primitive type %s\n", debug_d3dprimitivetype(primitive_type));
return GL_NONE;
case WINED3D_PT_UNDEFINED:
return ~0u;
}
}
......@@ -130,6 +131,7 @@ static enum wined3d_primitive_type d3d_primitive_type_from_gl(GLenum primitive_t
default:
FIXME("Unhandled primitive type %s\n", debug_d3dprimitivetype(primitive_type));
case ~0u:
return WINED3D_PT_UNDEFINED;
}
}
......
......@@ -1121,6 +1121,8 @@ static void state_init_default(struct wined3d_state *state, const struct wined3d
TRACE("state %p, gl_info %p.\n", state, gl_info);
state->gl_primitive_type = ~0u;
/* Set some of the defaults for lights, transforms etc */
state->transforms[WINED3D_TS_PROJECTION] = identity;
state->transforms[WINED3D_TS_VIEW] = identity;
......
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