Re: [Mesa-dev] [PATCH] mesa: check fbo completeness based on internal format, not driver format

2016-02-17 Thread Brian Paul
On 02/17/2016 06:35 PM, Ilia Mirkin wrote: The underlying format can be anything. Specifically in the stencil-only case, it might be a depth/stencil format. However we still want to refuse such an attachment when bound to GL_DEPTH, so we must check the base format that the texture was created

[Mesa-dev] [PATCH] mesa: check fbo completeness based on internal format, not driver format

2016-02-17 Thread Ilia Mirkin
The underlying format can be anything. Specifically in the stencil-only case, it might be a depth/stencil format. However we still want to refuse such an attachment when bound to GL_DEPTH, so we must check the base format that the texture was created with, rather than backed out from the