mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
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:
parent
75b26e18a6
commit
8b661a5d33
1 changed files with 8 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue