| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 5576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5587 return m_maxColorAttachments; | 5587 return m_maxColorAttachments; |
| 5588 } | 5588 } |
| 5589 | 5589 |
| 5590 void WebGLRenderingContext::setBackDrawBuffer(GC3Denum buf) | 5590 void WebGLRenderingContext::setBackDrawBuffer(GC3Denum buf) |
| 5591 { | 5591 { |
| 5592 m_backDrawBuffer = buf; | 5592 m_backDrawBuffer = buf; |
| 5593 } | 5593 } |
| 5594 | 5594 |
| 5595 void WebGLRenderingContext::restoreCurrentFramebuffer() | 5595 void WebGLRenderingContext::restoreCurrentFramebuffer() |
| 5596 { | 5596 { |
| 5597 bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_framebufferBinding.get(),
IGNORE_EXCEPTION_STATE); | 5597 bindFramebuffer(GraphicsContext3D::FRAMEBUFFER, m_framebufferBinding.get(),
IGNORE_EXCEPTION); |
| 5598 } | 5598 } |
| 5599 | 5599 |
| 5600 void WebGLRenderingContext::restoreCurrentTexture2D() | 5600 void WebGLRenderingContext::restoreCurrentTexture2D() |
| 5601 { | 5601 { |
| 5602 bindTexture(GraphicsContext3D::TEXTURE_2D, m_textureUnits[m_activeTextureUni
t].m_texture2DBinding.get(), IGNORE_EXCEPTION_STATE); | 5602 bindTexture(GraphicsContext3D::TEXTURE_2D, m_textureUnits[m_activeTextureUni
t].m_texture2DBinding.get(), IGNORE_EXCEPTION); |
| 5603 } | 5603 } |
| 5604 | 5604 |
| 5605 void WebGLRenderingContext::multisamplingChanged(bool enabled) | 5605 void WebGLRenderingContext::multisamplingChanged(bool enabled) |
| 5606 { | 5606 { |
| 5607 if (m_multisamplingAllowed != enabled) { | 5607 if (m_multisamplingAllowed != enabled) { |
| 5608 m_multisamplingAllowed = enabled; | 5608 m_multisamplingAllowed = enabled; |
| 5609 forceLostContext(WebGLRenderingContext::AutoRecoverSyntheticLostContext)
; | 5609 forceLostContext(WebGLRenderingContext::AutoRecoverSyntheticLostContext)
; |
| 5610 } | 5610 } |
| 5611 } | 5611 } |
| 5612 | 5612 |
| 5613 } // namespace WebCore | 5613 } // namespace WebCore |
| OLD | NEW |