projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe91c05
)
i965:fix segfault issue when clearing the window which
author
Xiang, Haihao
<haihao.xiang@intel.com>
Thu, 6 Mar 2008 01:41:41 +0000
(09:41 +0800)
committer
Xiang, Haihao
<haihao.xiang@intel.com>
Thu, 6 Mar 2008 01:45:51 +0000
(09:45 +0800)
is created with mode GLUT_SINGLE|GLUT_RGB|GLUT_DEPTH.
This issue is introduced by
20b8bff49cba3e8246e29004c5ff38f231d589ff
src/mesa/drivers/dri/i965/brw_metaops.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_metaops.c
b/src/mesa/drivers/dri/i965/brw_metaops.c
index dd62be34f4a3dfbbdb05e3262b571403a53c2862..7b34f0f3bd6f58b768e182602deaf31d2bf640a0 100644
(file)
--- 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;
}