i965:fix segfault issue when clearing the window which
is created with mode GLUT_SINGLE|GLUT_RGB|GLUT_DEPTH.
This issue is introduced by 20b8bff49c
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user