On 7/1/21 12:07 PM, Henri Verbeet wrote:
On Thu, 1 Jul 2021 at 00:44, Zebediah Figura z.figura12@gmail.com wrote:
@@ -6047,9 +6040,9 @@ static inline void wined3d_from_cs(const struct wined3d_cs *cs) assert(cs->thread_id == GetCurrentThreadId()); }
-static inline void wined3d_not_from_cs(struct wined3d_cs *cs) +static inline void wined3d_not_from_cs(const struct wined3d_device *device) {
- assert(cs->thread_id != GetCurrentThreadId());
- assert(device->cs->thread_id != GetCurrentThreadId()); }
Note that this introduces an asymmetry with wined3d_from_cs() though.
Indeed. I'll send a follow-up to rectify that.