| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010, Google Inc. | 2 * Copyright 2010, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 this.gl.FRAMEBUFFER, this.renderSurface.framebuffer_); | 81 this.gl.FRAMEBUFFER, this.renderSurface.framebuffer_); |
| 82 | 82 |
| 83 this.gl.framebufferRenderbuffer( | 83 this.gl.framebufferRenderbuffer( |
| 84 this.gl.FRAMEBUFFER, | 84 this.gl.FRAMEBUFFER, |
| 85 this.gl.COLOR_ATTACHMENT0, | 85 this.gl.COLOR_ATTACHMENT0, |
| 86 this.gl.RENDERBUFFER, | 86 this.gl.RENDERBUFFER, |
| 87 0); | 87 0); |
| 88 | 88 |
| 89 this.gl.framebufferRenderbuffer( | 89 this.gl.framebufferRenderbuffer( |
| 90 this.gl.FRAMEBUFFER, | 90 this.gl.FRAMEBUFFER, |
| 91 this.gl.DEPTH_STENCIL_ATTACHMENT, | 91 this.gl.DEPTH_ATTACHMENT, |
| 92 this.gl.RENDERBUFFER, | 92 this.gl.RENDERBUFFER, |
| 93 0); | 93 0); |
| 94 | 94 |
| 95 this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, 0); | 95 this.gl.bindFramebuffer(this.gl.FRAMEBUFFER, 0); |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * Helper function to set up both the color and depth-stencil targets. | 100 * Helper function to set up both the color and depth-stencil targets. |
| 101 * @private | 101 * @private |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 * Called during the rendergraph traversal after the children are rendered. | 156 * Called during the rendergraph traversal after the children are rendered. |
| 157 * @private | 157 * @private |
| 158 */ | 158 */ |
| 159 o3d.RenderSurfaceSet.prototype.after = function() { | 159 o3d.RenderSurfaceSet.prototype.after = function() { |
| 160 this.clearFramebufferObjects_(); | 160 this.clearFramebufferObjects_(); |
| 161 this.gl.displayInfo.height = this.previousHeight; | 161 this.gl.displayInfo.height = this.previousHeight; |
| 162 this.gl.displayInfo.width = this.previousWidth; | 162 this.gl.displayInfo.width = this.previousWidth; |
| 163 }; | 163 }; |
| 164 | 164 |
| 165 | 165 |
| OLD | NEW |