intel: Fall back on rendering to a texture attachment with a border.

Fixes a segfault in oglconform fbo.c test.
This commit is contained in:
Eric Anholt 2008-12-06 15:47:23 -08:00
parent 75b26e18a6
commit 8b661a5d33

View file

@ -620,7 +620,14 @@ intel_render_texture(GLcontext * ctx,
ASSERT(newImage);
if (!irb) {
if (newImage->Border != 0) {
/* Fallback on drawing to a texture with a border, which won't have a
* miptree.
*/
_mesa_reference_renderbuffer(&att->Renderbuffer, NULL);
_mesa_render_texture(ctx, fb, att);
return;
} else if (!irb) {
irb = intel_wrap_texture(ctx, newImage);
if (irb) {
/* bind the wrapper to the attachment point */