st/mesa: ignore gl_texture_object::BaseLevel when allocating gallium textures
[mesa.git] / src / mesa / state_tracker / st_texture.c
index 1b52e77b7d9931f956dc292cb0e964ca5f6f4c36..722f60e425244a03183c9994068c81b97aa6c23c 100644 (file)
@@ -269,6 +269,9 @@ st_texture_image_copy(struct pipe_context *pipe,
    struct pipe_surface *dst_surface;
    GLuint i;
 
+   assert(src->width0 == dst->width0);
+   assert(src->height0 == dst->height0);
+
    for (i = 0; i < depth; i++) {
       GLuint srcLevel;