| 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 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2470 break; | 2470 break; |
| 2471 case GL_DEPTH_ATTACHMENT: | 2471 case GL_DEPTH_ATTACHMENT: |
| 2472 webContext()->framebufferTexture2D(target, attachment, textarget, textur
eObject, level); | 2472 webContext()->framebufferTexture2D(target, attachment, textarget, textur
eObject, level); |
| 2473 break; | 2473 break; |
| 2474 case GL_STENCIL_ATTACHMENT: | 2474 case GL_STENCIL_ATTACHMENT: |
| 2475 webContext()->framebufferTexture2D(target, attachment, textarget, textur
eObject, level); | 2475 webContext()->framebufferTexture2D(target, attachment, textarget, textur
eObject, level); |
| 2476 break; | 2476 break; |
| 2477 default: | 2477 default: |
| 2478 webContext()->framebufferTexture2D(target, attachment, textarget, textur
eObject, level); | 2478 webContext()->framebufferTexture2D(target, attachment, textarget, textur
eObject, level); |
| 2479 } | 2479 } |
| 2480 framebufferBinding->setAttachmentForBoundFramebuffer(target, attachment, tex
target, texture, level); | 2480 framebufferBinding->setAttachmentForBoundFramebuffer(target, attachment, tex
target, texture, level, 0); |
| 2481 applyStencilTest(); | 2481 applyStencilTest(); |
| 2482 preserveObjectWrapper(scriptState, framebufferBinding, "texture2d", attachme
nt, texture); | 2482 preserveObjectWrapper(scriptState, framebufferBinding, "texture2d", attachme
nt, texture); |
| 2483 } | 2483 } |
| 2484 | 2484 |
| 2485 void WebGLRenderingContextBase::frontFace(GLenum mode) | 2485 void WebGLRenderingContextBase::frontFace(GLenum mode) |
| 2486 { | 2486 { |
| 2487 if (isContextLost()) | 2487 if (isContextLost()) |
| 2488 return; | 2488 return; |
| 2489 switch (mode) { | 2489 switch (mode) { |
| 2490 case GL_CW: | 2490 case GL_CW: |
| (...skipping 4424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6915 | 6915 |
| 6916 return totalBytesPerPixel; | 6916 return totalBytesPerPixel; |
| 6917 } | 6917 } |
| 6918 | 6918 |
| 6919 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const | 6919 DrawingBuffer* WebGLRenderingContextBase::drawingBuffer() const |
| 6920 { | 6920 { |
| 6921 return m_drawingBuffer.get(); | 6921 return m_drawingBuffer.get(); |
| 6922 } | 6922 } |
| 6923 | 6923 |
| 6924 } // namespace blink | 6924 } // namespace blink |
| OLD | NEW |