This fixes unused variable warnings in the release build, and should be
more useful if it ever triggers.
Reviewed-by: Matt Turner <mattst88@gmail.com>
unsigned int src_offset,
unsigned int size)
{
+ struct gl_context *ctx = &intel->ctx;
GLuint pitch, height;
bool ok;
0, 0, /* dst x/y */
pitch, height, /* w, h */
GL_COPY);
- assert(ok);
+ if (!ok)
+ _mesa_problem(ctx, "Failed to linear blit %dx%d\n", pitch, height);
src_offset += pitch * height;
dst_offset += pitch * height;
0, 0, /* dst x/y */
size, 1, /* w, h */
GL_COPY);
- assert(ok);
+ if (!ok)
+ _mesa_problem(ctx, "Failed to linear blit %dx%d\n", size, 1);
}
}