Commit d84fb829 authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Check BO existence before trying to update its fence counter.

parent c99e6b33
......@@ -6744,7 +6744,8 @@ static inline void wined3d_context_gl_reference_bo(struct wined3d_context_gl *co
static inline void wined3d_context_gl_reference_buffer(struct wined3d_context_gl *context_gl,
struct wined3d_buffer *buffer)
{
wined3d_context_gl_reference_bo(context_gl, wined3d_bo_gl(buffer->buffer_object));
if (buffer->buffer_object)
wined3d_context_gl_reference_bo(context_gl, wined3d_bo_gl(buffer->buffer_object));
}
static inline bool wined3d_map_persistent(void)
......
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