mesa: remove gl_renderbuffer::Wrapped
[mesa.git] / src / mesa / drivers / dri / nouveau / nouveau_driver.c
index 8b6aa820434ec29e6191441b9ae99a9e4f1906eb..ba818f0030e318bac16e9a23e01e99680b0f0889 100644 (file)
@@ -96,11 +96,11 @@ nouveau_clear(struct gl_context *ctx, GLbitfield buffers)
                        continue;
 
                s = &to_nouveau_renderbuffer(
-                       fb->Attachment[i].Renderbuffer->Wrapped)->surface;
+                       fb->Attachment[i].Renderbuffer)->surface;
 
                if (buf & BUFFER_BITS_COLOR) {
                        mask = pack_rgba_i(s->format, ctx->Color.ColorMask[0]);
-                       value = pack_rgba_f(s->format, ctx->Color.ClearColor);
+                       value = pack_rgba_clamp_f(s->format, ctx->Color.ClearColor.f);
 
                        if (mask)
                                context_drv(ctx)->surface_fill(