Thomas Hellstrom wrote:
> Add code to support proper errror reporting:
> GL_FRAMEBUFFER_UNSUPPORTED
> when an internal texture image format isn't suitable for render-to-texture,
> and the texture image has been attached to a framebuffer.
> 
> The driver should set
> gl_texture_image::IsDepthStencil
> and
> gl_texture_image::IsColorRT
> 
> to indicate whether the internal texture image format is suitable as
> a depth / stencil or color render target respective.
> 
> Note: For backwards compatibility, these default to GL_TRUE.


I think what you need to do can instead be accomplished entirely in 
the st_validate_framebuffer() function in st_cb_fbo.c

Basically, loop over all the renderbuffers which are attached to the 
fbo and call screen->is_format_supported() with 
PIPE_TEXTURE_USAGE_RENDER_TARGET.  If any of those calls fail, set the 
fbo's status to GL_FRAMEBUFFER_UNSUPPORTED_EXT and stop.

-Brian


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to