struct intel_renderbuffer *irb = intel_renderbuffer(rb);
rb->NumSamples = quantize_num_samples(intel, rb->NumSamples);
- ASSERT(rb->Name != 0);
-
switch (internalFormat) {
default:
/* Use the same format-choice logic as for textures.
return irb;
}
+/**
+ * Private window-system buffers (as opposed to ones shared with the display
+ * server created with intel_create_renderbuffer()) are most similar in their
+ * handling to user-created renderbuffers, but they have a resize handler that
+ * may be called at intel_update_renderbuffers() time.
+ */
+struct intel_renderbuffer *
+intel_create_private_renderbuffer(gl_format format)
+{
+ struct intel_renderbuffer *irb;
+
+ irb = intel_create_renderbuffer(format);
+ irb->Base.Base.AllocStorage = intel_alloc_renderbuffer_storage;
+
+ return irb;
+}
+
/**
* Create a new renderbuffer object.
* Typically called via glBindRenderbufferEXT().
extern struct intel_renderbuffer *
intel_create_renderbuffer(gl_format format);
+struct intel_renderbuffer *
+intel_create_private_renderbuffer(gl_format format);
+
struct gl_renderbuffer*
intel_create_wrapped_renderbuffer(struct gl_context * ctx,
int width, int height,