commit | 88799d9c1f496ecbe2b17c7508c95566175a29fc | [log] [tgz] |
---|---|---|
author | christoffer <christoffer@sinch.com> | Fri Sep 25 13:57:50 2015 |
committer | Commit bot <commit-bot@chromium.org> | Fri Sep 25 13:57:54 2015 |
tree | 97beeca1882818ed06eded52b3c6cf8cab84214f | |
parent | 94c01051a8a00e9fd6641940fcb3e4f332ac1a84 [diff] |
RTCEAGLVideoView: Fix GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT error. Fix an issue where using setNeedsDisplay on a GLKView which has a frame with size zero will make GLKView/iOS output the following error: Failed to bind EAGLDrawable: <CAEAGLLayer: 0x1742282e0> to GL_RENDERBUFFER 1 Failed to make complete framebuffer object 8cd6 (The error code 8cd6 corresponds to GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT.) GLKView will internally setup it's render buffer when the delegate is about to draw into it. Previously when enableSetNeedsDisplay was set to YES (default), then GLKView would still attempt to setup it's internal buffer even if it's frame size is zero and that would cause GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT. By using enableSetNeedsDisplay = NO, RTCEAGLVideoView can guard against calling -[GLKView display] if it's current frame size is empty. Review URL: https://codereview.webrtc.org/1347013002 Cr-Commit-Position: refs/heads/master@{#10076}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.