Changeset 80124 in webkit
- Timestamp:
- Mar 2, 2011 6:47:38 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r80121 r80124 1 2011-03-02 David Kilzer <ddkilzer@apple.com> 2 3 <http://webkit.org/b/55534> Clean up macros in Extensions3DOpenGL.cpp 4 5 Reviewed by Darin Adler. 6 7 Change "#if GL_APPLE_vertex_array_object" macros to check that 8 GL_APPLE_vertex_array_object is both defined and non-zero. 9 10 * platform/graphics/opengl/Extensions3DOpenGL.cpp: 11 (WebCore::Extensions3DOpenGL::createVertexArrayOES): 12 (WebCore::Extensions3DOpenGL::deleteVertexArrayOES): Remove 13 empty #else clause. 14 (WebCore::Extensions3DOpenGL::isVertexArrayOES): 15 (WebCore::Extensions3DOpenGL::bindVertexArrayOES): Add early 16 return check. Remove #else clause that would never have 17 compiled (since array is not a WTF::String). 18 1 19 2011-03-01 Ryosuke Niwa <rniwa@webkit.org> 2 20 -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp
r79011 r80124 135 135 { 136 136 m_context->makeContextCurrent(); 137 #if GL_APPLE_vertex_array_object137 #if defined GL_APPLE_vertex_array_object && GL_APPLE_vertex_array_object 138 138 GLuint array = 0; 139 139 glGenVertexArraysAPPLE(1, &array); … … 150 150 151 151 m_context->makeContextCurrent(); 152 #if GL_APPLE_vertex_array_object152 #if defined GL_APPLE_vertex_array_object && GL_APPLE_vertex_array_object 153 153 glDeleteVertexArraysAPPLE(1, &array); 154 #else155 154 #endif 156 155 } … … 162 161 163 162 m_context->makeContextCurrent(); 164 #if GL_APPLE_vertex_array_object163 #if defined GL_APPLE_vertex_array_object && GL_APPLE_vertex_array_object 165 164 return glIsVertexArrayAPPLE(array); 166 165 #else … … 171 170 void Extensions3DOpenGL::bindVertexArrayOES(Platform3DObject array) 172 171 { 172 if (!array) 173 return; 174 173 175 m_context->makeContextCurrent(); 174 #if GL_APPLE_vertex_array_object176 #if defined GL_APPLE_vertex_array_object && GL_APPLE_vertex_array_object 175 177 glBindVertexArrayAPPLE(array); 176 #else177 ASSERT_UNUSED(array, supports(array));178 178 #endif 179 179 }
Note: See TracChangeset
for help on using the changeset viewer.