Bug 1247804 - Enable seamless cubemaps where available. - r=jrmuizel

This commit is contained in:
Jeff Gilbert 2016-02-11 17:57:25 -08:00
parent ab36d59168
commit 20e882360f
4 changed files with 16 additions and 0 deletions

View File

@ -911,6 +911,10 @@ WebGLContext::InitAndValidateGL()
}
#endif
if (gl->IsSupported(gl::GLFeature::seamless_cube_map_opt_in)) {
gl->fEnable(LOCAL_GL_TEXTURE_CUBE_MAP_SEAMLESS);
}
// Check the shader validator pref
mBypassShaderValidation = gfxPrefs::WebGLBypassShaderValidator();

View File

@ -99,6 +99,7 @@ static const char *sExtensionNames[] = {
"GL_ARB_pixel_buffer_object",
"GL_ARB_robustness",
"GL_ARB_sampler_objects",
"GL_ARB_seamless_cube_map",
"GL_ARB_sync",
"GL_ARB_texture_compression",
"GL_ARB_texture_float",

View File

@ -126,6 +126,7 @@ enum class GLFeature {
sRGB_framebuffer,
sRGB_texture,
sampler_objects,
seamless_cube_map_opt_in,
split_framebuffer,
standard_derivatives,
sync,
@ -420,6 +421,7 @@ public:
ARB_pixel_buffer_object,
ARB_robustness,
ARB_sampler_objects,
ARB_seamless_cube_map,
ARB_sync,
ARB_texture_compression,
ARB_texture_float,

View File

@ -547,6 +547,15 @@ static const FeatureInfo sFeatureInfoArr[] = {
GLContext::Extensions_End
}
},
{
"seamless_cube_map_opt_in",
GLVersion::GL3_2,
GLESVersion::NONE,
GLContext::ARB_seamless_cube_map,
{
GLContext::Extensions_End
}
},
{
// Do we have separate DRAW and READ framebuffer bind points?
"split_framebuffer",