Changeset 169654 in webkit
- Timestamp:
- Jun 6, 2014 11:37:08 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r169651 r169654 1 2014-06-06 Dean Jackson <dino@apple.com> 2 3 [iOS WebGL] Float texture extension has a slightly different name 4 https://bugs.webkit.org/show_bug.cgi?id=133580 5 <rdar://problem/17113451> 6 7 Reviewed by Brady Eidson. 8 9 Floating point textures were not available on iOS, because we were 10 looking for the wrong extension. 11 12 Covered by the Khronos test (and in LayoutTests): 13 conformance/extensions/oes-texture-float.html 14 15 * platform/graphics/opengl/Extensions3DOpenGL.cpp: 16 (WebCore::Extensions3DOpenGL::supportsExtension): Look for GL_OES_texture_float 17 as well as GL_ARB_texture_float. 18 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: 19 (WebCore::GraphicsContext3D::texImage2D): Increase the set of things skipped 20 on PLATFORM(IOS) since they are supported natively there. 21 1 22 2014-06-05 David Hyatt <hyatt@apple.com> 2 23 -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp
r168639 r169654 178 178 return true; 179 179 180 // If GL_ARB_texture_float is available then we report GL_OES_texture_float,180 // If GL_ARB_texture_float or GL_OES_texture_float is available then we report 181 181 // GL_OES_texture_half_float, GL_OES_texture_float_linear and GL_OES_texture_half_float_linear as available. 182 182 if (name == "GL_OES_texture_float" || name == "GL_OES_texture_half_float" || name == "GL_OES_texture_float_linear" || name == "GL_OES_texture_half_float_linear") 183 return m_availableExtensions.contains("GL_ARB_texture_float") ;183 return m_availableExtensions.contains("GL_ARB_texture_float") || m_availableExtensions.contains("GL_OES_texture_float"); 184 184 185 185 // GL_OES_vertex_array_object -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
r167520 r169654 295 295 296 296 GC3Denum openGLInternalFormat = internalformat; 297 #if !PLATFORM(IOS) 297 298 if (type == GL_FLOAT) { 298 299 if (format == GL_RGBA) … … 301 302 openGLInternalFormat = GL_RGB32F_ARB; 302 303 } else if (type == HALF_FLOAT_OES) { 303 #if !PLATFORM(IOS)304 304 if (format == GL_RGBA) 305 305 openGLInternalFormat = GL_RGBA16F_ARB; … … 313 313 openGLInternalFormat = GL_LUMINANCE_ALPHA16F_ARB; 314 314 type = GL_HALF_FLOAT_ARB; 315 #endif 316 } 315 } 316 #endif 317 317 texImage2DDirect(target, level, openGLInternalFormat, width, height, border, format, type, pixels); 318 318 return true;
Note: See TracChangeset
for help on using the changeset viewer.