On Mon May 25 13:49:11 2026 +0000, Henri Verbeet wrote:
```diff #define WINED3D_LEGACY_CUBEMAP_FILTERING 0x00001000 #define WINED3D_NORMALIZED_DEPTH_BIAS 0x00002000 #define WINED3D_NO_DRAW_INDIRECT 0x00004000 +#define WINED3D_MULTISAMPLED_LOCKABLE_BACKBUFFER_FLAG
0x00008000 /* Allow the swapchain flag, but not actual locking */
```
Do we need this to be a global wined3d flag? (As opposed to something like WINED3D_SWAPCHAIN_ALLOW_MODE_SWITCH.) Also, this modifies wined3d_device_reset(), but wouldn't we need to account for this in places like wined3d_swapchain_init(), swapchain_create_texture() and update_swapchain_flags() as well? I modified it to use a swapchain flag instead, and to check `multisample_type` wherever `WINED3D_SWAPCHAIN_LOCKABLE_BACKBUFFER` is checked.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10874#note_141232