зеркало из https://github.com/mozilla/gecko-dev.git
Bug 763559 - Enable WEBGL_compressed_texture_s3tc with ANGLE - r=jgilbert
This commit is contained in:
Родитель
1d0b75d023
Коммит
5530f6649a
|
@ -861,7 +861,13 @@ bool WebGLContext::IsExtensionSupported(WebGLExtensionID ei)
|
|||
isSupported = true;
|
||||
break;
|
||||
case WebGL_WEBGL_compressed_texture_s3tc:
|
||||
isSupported = gl->IsExtensionSupported(GLContext::EXT_texture_compression_s3tc);
|
||||
if (gl->IsExtensionSupported(GLContext::EXT_texture_compression_s3tc)) {
|
||||
isSupported = true;
|
||||
} else {
|
||||
isSupported = gl->IsExtensionSupported(GLContext::EXT_texture_compression_dxt1) &&
|
||||
gl->IsExtensionSupported(GLContext::ANGLE_texture_compression_dxt3) &&
|
||||
gl->IsExtensionSupported(GLContext::ANGLE_texture_compression_dxt5);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
isSupported = false;
|
||||
|
|
|
@ -66,6 +66,9 @@ static const char *sExtensionNames[] = {
|
|||
"GL_OES_standard_derivatives",
|
||||
"GL_EXT_texture_filter_anisotropic",
|
||||
"GL_EXT_texture_compression_s3tc",
|
||||
"GL_EXT_texture_compression_dxt1",
|
||||
"GL_ANGLE_texture_compression_dxt3",
|
||||
"GL_ANGLE_texture_compression_dxt5",
|
||||
"GL_EXT_framebuffer_blit",
|
||||
"GL_ANGLE_framebuffer_blit",
|
||||
"GL_EXT_framebuffer_multisample",
|
||||
|
|
|
@ -1496,6 +1496,9 @@ public:
|
|||
OES_standard_derivatives,
|
||||
EXT_texture_filter_anisotropic,
|
||||
EXT_texture_compression_s3tc,
|
||||
EXT_texture_compression_dxt1,
|
||||
ANGLE_texture_compression_dxt3,
|
||||
ANGLE_texture_compression_dxt5,
|
||||
EXT_framebuffer_blit,
|
||||
ANGLE_framebuffer_blit,
|
||||
EXT_framebuffer_multisample,
|
||||
|
|
Загрузка…
Ссылка в новой задаче