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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 if (!context) | 195 if (!context) |
196 return; | 196 return; |
197 GLint linkStatus = 0; | 197 GLint linkStatus = 0; |
198 context->getProgramiv(object(), GL_LINK_STATUS, &linkStatus); | 198 context->getProgramiv(object(), GL_LINK_STATUS, &linkStatus); |
199 m_linkStatus = linkStatus; | 199 m_linkStatus = linkStatus; |
200 if (m_linkStatus) | 200 if (m_linkStatus) |
201 cacheActiveAttribLocations(context); | 201 cacheActiveAttribLocations(context); |
202 m_infoValid = true; | 202 m_infoValid = true; |
203 } | 203 } |
204 | 204 |
205 void WebGLProgram::trace(Visitor* visitor) | 205 DEFINE_TRACE(WebGLProgram) |
206 { | 206 { |
207 visitor->trace(m_vertexShader); | 207 visitor->trace(m_vertexShader); |
208 visitor->trace(m_fragmentShader); | 208 visitor->trace(m_fragmentShader); |
209 WebGLSharedObject::trace(visitor); | 209 WebGLSharedObject::trace(visitor); |
210 } | 210 } |
211 | 211 |
212 } | 212 } |
OLD | NEW |