Bug 1270318 - Fixup WebGL extension requirements. - r=jrmuizel

This commit is contained in:
Jeff Gilbert 2016-05-09 12:00:10 -07:00
Родитель 3af240fd90
Коммит 4098575167
3 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -71,7 +71,7 @@ static const gl::GLFeature kRequiredFeatures[] = {
gl::GLFeature::gpu_shader4,
gl::GLFeature::instanced_arrays,
gl::GLFeature::instanced_non_arrays,
gl::GLFeature::map_buffer_range,
gl::GLFeature::map_buffer_range, // Used by GetBufferSubData.
gl::GLFeature::occlusion_query2,
gl::GLFeature::packed_depth_stencil,
gl::GLFeature::query_objects,
@ -85,7 +85,6 @@ static const gl::GLFeature kRequiredFeatures[] = {
gl::GLFeature::texture_3D_compressed,
gl::GLFeature::texture_3D_copy,
gl::GLFeature::texture_float,
gl::GLFeature::texture_float_linear,
gl::GLFeature::texture_half_float,
gl::GLFeature::texture_half_float_linear,
gl::GLFeature::texture_non_power_of_two,

Просмотреть файл

@ -120,8 +120,6 @@ WebGLContext::IsExtensionSupported(WebGLExtensionID ext) const
// OES_
case WebGLExtensionID::OES_texture_float_linear:
return gl->IsSupported(gl::GLFeature::texture_float_linear);
case WebGLExtensionID::OES_texture_half_float_linear:
return gl->IsSupported(gl::GLFeature::texture_half_float_linear);
// WEBGL_
case WebGLExtensionID::WEBGL_color_buffer_float:
@ -189,6 +187,8 @@ WebGLContext::IsExtensionSupported(WebGLExtensionID ext) const
return WebGLExtensionTextureFloat::IsSupported(this);
case WebGLExtensionID::OES_texture_half_float:
return WebGLExtensionTextureHalfFloat::IsSupported(this);
case WebGLExtensionID::OES_texture_half_float_linear:
return gl->IsSupported(gl::GLFeature::texture_half_float_linear);
case WebGLExtensionID::OES_vertex_array_object:
return true;

Просмотреть файл

@ -511,6 +511,7 @@ static const FeatureInfo sFeatureInfoArr[] = {
GLContext::Extension_None,
{
GLContext::ARB_texture_float,
GLContext::EXT_color_buffer_float,
GLContext::EXT_color_buffer_half_float,
GLContext::Extensions_End
}