зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1247804 - Enable seamless cubemaps where available. - r=jrmuizel
This commit is contained in:
Родитель
ab36d59168
Коммит
20e882360f
|
@ -911,6 +911,10 @@ WebGLContext::InitAndValidateGL()
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (gl->IsSupported(gl::GLFeature::seamless_cube_map_opt_in)) {
|
||||||
|
gl->fEnable(LOCAL_GL_TEXTURE_CUBE_MAP_SEAMLESS);
|
||||||
|
}
|
||||||
|
|
||||||
// Check the shader validator pref
|
// Check the shader validator pref
|
||||||
mBypassShaderValidation = gfxPrefs::WebGLBypassShaderValidator();
|
mBypassShaderValidation = gfxPrefs::WebGLBypassShaderValidator();
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,7 @@ static const char *sExtensionNames[] = {
|
||||||
"GL_ARB_pixel_buffer_object",
|
"GL_ARB_pixel_buffer_object",
|
||||||
"GL_ARB_robustness",
|
"GL_ARB_robustness",
|
||||||
"GL_ARB_sampler_objects",
|
"GL_ARB_sampler_objects",
|
||||||
|
"GL_ARB_seamless_cube_map",
|
||||||
"GL_ARB_sync",
|
"GL_ARB_sync",
|
||||||
"GL_ARB_texture_compression",
|
"GL_ARB_texture_compression",
|
||||||
"GL_ARB_texture_float",
|
"GL_ARB_texture_float",
|
||||||
|
|
|
@ -126,6 +126,7 @@ enum class GLFeature {
|
||||||
sRGB_framebuffer,
|
sRGB_framebuffer,
|
||||||
sRGB_texture,
|
sRGB_texture,
|
||||||
sampler_objects,
|
sampler_objects,
|
||||||
|
seamless_cube_map_opt_in,
|
||||||
split_framebuffer,
|
split_framebuffer,
|
||||||
standard_derivatives,
|
standard_derivatives,
|
||||||
sync,
|
sync,
|
||||||
|
@ -420,6 +421,7 @@ public:
|
||||||
ARB_pixel_buffer_object,
|
ARB_pixel_buffer_object,
|
||||||
ARB_robustness,
|
ARB_robustness,
|
||||||
ARB_sampler_objects,
|
ARB_sampler_objects,
|
||||||
|
ARB_seamless_cube_map,
|
||||||
ARB_sync,
|
ARB_sync,
|
||||||
ARB_texture_compression,
|
ARB_texture_compression,
|
||||||
ARB_texture_float,
|
ARB_texture_float,
|
||||||
|
|
|
@ -547,6 +547,15 @@ static const FeatureInfo sFeatureInfoArr[] = {
|
||||||
GLContext::Extensions_End
|
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?
|
// Do we have separate DRAW and READ framebuffer bind points?
|
||||||
"split_framebuffer",
|
"split_framebuffer",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче