On 9 October 2014 18:01, Matteo Bruni mbruni@codeweavers.com wrote:
+static const struct wined3d_shader_limits vs_limits[] =
This doesn't really need to be global. It's not even that I mind that much for this kind of static const array, but it actually makes things easier to keep it local to shader_set_limits().
struct wined3d_shader_limits {
- unsigned int min_version;
- unsigned int max_version; unsigned int sampler; unsigned int constant_int; unsigned int constant_float;
You don't need that to be part of wined3d_shader_limits.