mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
i915g: don't validate a NULL vbo
With the new clear code this is possible (if the app call glClear before drawing the first primitive). Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
7dcf019af2
commit
b0dd74aaf7
1 changed files with 1 additions and 1 deletions
|
|
@ -119,7 +119,7 @@ validate_immediate(struct i915_context *i915, unsigned *batch_space)
|
|||
1 << I915_IMMEDIATE_S5 | 1 << I915_IMMEDIATE_S6) &
|
||||
i915->immediate_dirty;
|
||||
|
||||
if (i915->immediate_dirty & (1 << I915_IMMEDIATE_S0))
|
||||
if (i915->immediate_dirty & (1 << I915_IMMEDIATE_S0) && i915->vbo)
|
||||
i915->validation_buffers[i915->num_validation_buffers++] = i915->vbo;
|
||||
|
||||
*batch_space = 1 + util_bitcount(dirty);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue