Bug 70411

Summary: glInvalidateFramebuffer fails with GL_INVALID_ENUM
Product: Mesa Reporter: Constantin Baranov <const>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium    
Version: 9.2   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
i915 platform: i915 features:
Attachments: Add missing switch break

Description Constantin Baranov 2013-10-12 22:28:05 UTC
Created attachment 87535 [details]
Add missing switch break

The call:
glInvalidateFramebuffer(GL_READ_FRAMEBUFFER, 1, &(GLenum){GL_COLOR_ATTACHMENT0});
gives me GL_INVALID_ENUM. An FBO with only single color attachment is bound to GL_READ_FRAMEBUFFER.
Comment 1 Brian Paul 2013-10-14 15:06:17 UTC
Thanks!  I'll commit this shortly.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct.