From 248f0e5e1635ad8061e76d39b08ec390a2e7513f Mon Sep 17 00:00:00 2001 From: "kbr@google.com" Date: Thu, 25 Aug 2011 23:47:25 +0000 Subject: Further attempted workarounds for Mac- and NVIDIA-specific crash. Can not reproduce this crash in house any more, so adding more code along the lines of the earlier fix which was known to work on some hardware. BUG=94103 TEST=none (tested manually to verify no regression) Review URL: http://codereview.chromium.org/7756001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98355 0039d316-1c4b-4281-b951-d872f2087c98 --- gpu/command_buffer/service/gles2_cmd_decoder.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gpu/command_buffer/service/gles2_cmd_decoder.cc') diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc index 2bc6029..6d42925 100644 --- a/gpu/command_buffer/service/gles2_cmd_decoder.cc +++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc @@ -2529,8 +2529,11 @@ bool GLES2DecoderImpl::ResizeOffscreenFrameBuffer(const gfx::Size& size) { // Workaround for NVIDIA driver bug on OS X; crbug.com/89557, // crbug.com/94163. TODO(kbr): figure out reproduction so Apple will // fix this. - if (needs_mac_nvidia_driver_workaround_) + if (needs_mac_nvidia_driver_workaround_) { offscreen_saved_frame_buffer_->Create(); + offscreen_saved_color_texture_->Create(); + glFlush(); + } // Allocate the offscreen saved color texture. DCHECK(offscreen_saved_color_format_); -- cgit v1.1