vbo: remove MaxVertexAttribStride assert check.
authorDave Airlie <airlied@redhat.com>
Tue, 15 May 2018 05:44:04 +0000 (15:44 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 18 May 2018 04:58:15 +0000 (14:58 +1000)
Some drivers (virgl) don't support GL4.4 or GLES3.1 yet,
so never fill in this const.

Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/vbo/vbo_exec_draw.c

index 342fbc60705ee2b22b713acd77590bf0deb172a1..8d74725db39250928637509f04012fad03b313bf 100644 (file)
@@ -201,7 +201,6 @@ vbo_exec_bind_arrays(struct gl_context *ctx)
 
    /* Bind the buffer object */
    const GLuint stride = exec->vtx.vertex_size*sizeof(GLfloat);
-   assert(stride <= ctx->Const.MaxVertexAttribStride);
    _mesa_bind_vertex_buffer(ctx, vao, 0, exec->vtx.bufferobj, buffer_offset,
                             stride);