Commit 6d41604b authored by kbr@google.com's avatar kbr@google.com

Call glFinish just before reallocating offscreen_saved_color_texture_

as possible workaround for crash in NVIDIA driver on Mac. Also fixed
bug ID in comment.

BUG=94103
TEST=none (manually tested some WebGL content)
Review URL: http://codereview.chromium.org/7800006

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98729 0039d316-1c4b-4281-b951-d872f2087c98
parent 2dd868ff
...@@ -2527,10 +2527,12 @@ bool GLES2DecoderImpl::ResizeOffscreenFrameBuffer(const gfx::Size& size) { ...@@ -2527,10 +2527,12 @@ bool GLES2DecoderImpl::ResizeOffscreenFrameBuffer(const gfx::Size& size) {
} }
// Workaround for NVIDIA driver bug on OS X; crbug.com/89557, // Workaround for NVIDIA driver bug on OS X; crbug.com/89557,
// crbug.com/94163. TODO(kbr): figure out reproduction so Apple will // crbug.com/94103. TODO(kbr): figure out reproduction so Apple will
// fix this. // fix this.
if (needs_mac_nvidia_driver_workaround_) if (needs_mac_nvidia_driver_workaround_) {
offscreen_saved_frame_buffer_->Create(); offscreen_saved_frame_buffer_->Create();
glFinish();
}
// Allocate the offscreen saved color texture. // Allocate the offscreen saved color texture.
DCHECK(offscreen_saved_color_format_); DCHECK(offscreen_saved_color_format_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment