wined3d: Use a designated initializer to initialize wined3d_settings.

And replace ~0u with the more meaningful UINT_MAX.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura 2021-07-28 18:11:26 -05:00 committed by Alexandre Julliard
parent ba67dfe8c8
commit 203dd2b640

View file

@ -110,25 +110,21 @@ CRITICAL_SECTION wined3d_command_cs = {&wined3d_command_cs_debug, -1, 0, 0, 0, 0
* where appropriate. */ * where appropriate. */
struct wined3d_settings wined3d_settings = struct wined3d_settings wined3d_settings =
{ {
WINED3D_CSMT_ENABLE, /* Multithreaded CS by default. */ .cs_multithreaded = WINED3D_CSMT_ENABLE,
MAKEDWORD_VERSION(4, 4), /* Default to OpenGL 4.4 */ .max_gl_version = MAKEDWORD_VERSION(4, 4),
ORM_FBO, /* Use FBOs to do offscreen rendering */ .offscreen_rendering_mode = ORM_FBO,
PCI_VENDOR_NONE,/* PCI Vendor ID */ .pci_vendor_id = PCI_VENDOR_NONE,
PCI_DEVICE_NONE,/* PCI Device ID */ .pci_device_id = PCI_DEVICE_NONE,
0, /* The default of memory is set in init_driver_info */ .multisample_textures = TRUE,
NULL, /* No wine logo by default */ .sample_count = ~0u,
TRUE, /* Prefer multisample textures to multisample renderbuffers. */ .max_sm_vs = UINT_MAX,
~0u, /* Don't force a specific sample count by default. */ .max_sm_ps = UINT_MAX,
FALSE, /* Don't range check relative addressing indices in float constants. */ .max_sm_ds = UINT_MAX,
FALSE, /* No strict shader math by default. */ .max_sm_hs = UINT_MAX,
~0U, /* No VS shader model limit by default. */ .max_sm_gs = UINT_MAX,
~0U, /* No HS shader model limit by default. */ .max_sm_cs = UINT_MAX,
~0U, /* No DS shader model limit by default. */ .renderer = WINED3D_RENDERER_AUTO,
~0U, /* No GS shader model limit by default. */ .shader_backend = WINED3D_SHADER_BACKEND_AUTO,
~0U, /* No PS shader model limit by default. */
~0u, /* No CS shader model limit by default. */
WINED3D_RENDERER_AUTO,
WINED3D_SHADER_BACKEND_AUTO,
}; };
struct wined3d * CDECL wined3d_create(DWORD flags) struct wined3d * CDECL wined3d_create(DWORD flags)