}
else {
format = st_choose_renderbuffer_format(screen, internalFormat, 0);
- }
- if (format == PIPE_FORMAT_NONE) {
- return FALSE;
+ /* Not setting gl_renderbuffer::Format here will cause
+ * FRAMEBUFFER_UNSUPPORTED and ValidateFramebuffer will not be called.
+ */
+ if (format == PIPE_FORMAT_NONE) {
+ return GL_TRUE;
+ }
}
strb->Base.Format = st_pipe_format_to_mesa_format(format);
format = st_choose_renderbuffer_format(screen, internalFormat,
rb->NumSamples);
+ /* Not setting gl_renderbuffer::Format here will cause
+ * FRAMEBUFFER_UNSUPPORTED and ValidateFramebuffer will not be called.
+ */
if (format == PIPE_FORMAT_NONE) {
- return FALSE;
+ return GL_TRUE;
}
strb->Base.Format = st_pipe_format_to_mesa_format(format);