Browse Source

glspirv: drop pointless assert (size_t is unsigned)

Found by coverity

Reviewed-by: Alejandro Piñeiro <apinheiro@igalia.com>
tags/18.3-branchpoint
Dave Airlie 7 years ago
parent
commit
c5c3da6c90
1 changed files with 0 additions and 2 deletions
  1. 0
    2
      src/mesa/main/glspirv.c

+ 0
- 2
src/mesa/main/glspirv.c View File

@@ -73,8 +73,6 @@ _mesa_spirv_shader_binary(struct gl_context *ctx,
struct gl_spirv_module *module;
struct gl_shader_spirv_data *spirv_data;

assert(length >= 0);

module = malloc(sizeof(*module) + length);
if (!module) {
_mesa_error(ctx, GL_OUT_OF_MEMORY, "glShaderBinary");

Loading…
Cancel
Save