diff options
author | Xiang, Haihao <[email protected]> | 2008-03-06 09:41:41 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-03-06 09:45:51 +0800 |
commit | 771ba666290150dcebeefa5d6bbf4254f95c1c26 (patch) | |
tree | 43d0ffc3b14462f29aaa3151497c66b1b32da065 /src/mesa/drivers/dri/i965 | |
parent | fe91c05b5494b889c8adda77ff562712116d2e59 (diff) |
i965:fix segfault issue when clearing the window which
is created with mode GLUT_SINGLE|GLUT_RGB|GLUT_DEPTH.
This issue is introduced by 20b8bff49cba3e8246e29004c5ff38f231d589ff
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_metaops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_metaops.c b/src/mesa/drivers/dri/i965/brw_metaops.c index dd62be34f4a..7b34f0f3bd6 100644 --- a/src/mesa/drivers/dri/i965/brw_metaops.c +++ b/src/mesa/drivers/dri/i965/brw_metaops.c @@ -372,7 +372,8 @@ static void meta_draw_region( struct intel_context *intel, if (intel->frame_buffer_texobj != NULL) brw_FrameBufferTexDestroy(brw); - brw_FrameBufferTexInit(brw, draw_region); + if (draw_region) + brw_FrameBufferTexInit(brw, draw_region); brw->state.dirty.mesa |= _NEW_BUFFERS; } |