зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1001885: Support NPOT texture wrap modes on older PowerVR drivers (r=mattwoodrow).
This commit is contained in:
Родитель
96cec0c2c1
Коммит
f78d29b988
|
@ -70,6 +70,7 @@ static const char *sExtensionNames[] = {
|
|||
"GL_OES_depth32",
|
||||
"GL_OES_stencil8",
|
||||
"GL_OES_texture_npot",
|
||||
"GL_IMG_texture_npot",
|
||||
"GL_ARB_depth_texture",
|
||||
"GL_OES_depth_texture",
|
||||
"GL_OES_packed_depth_stencil",
|
||||
|
|
|
@ -338,6 +338,7 @@ public:
|
|||
OES_depth32,
|
||||
OES_stencil8,
|
||||
OES_texture_npot,
|
||||
IMG_texture_npot,
|
||||
ARB_depth_texture,
|
||||
OES_depth_texture,
|
||||
OES_packed_depth_stencil,
|
||||
|
|
|
@ -121,7 +121,8 @@ WrapMode(gl::GLContext *aGl, TextureFlags aFlags)
|
|||
{
|
||||
if ((aFlags & TextureFlags::ALLOW_REPEAT) &&
|
||||
(aGl->IsExtensionSupported(GLContext::ARB_texture_non_power_of_two) ||
|
||||
aGl->IsExtensionSupported(GLContext::OES_texture_npot))) {
|
||||
aGl->IsExtensionSupported(GLContext::OES_texture_npot) ||
|
||||
aGl->IsExtensionSupported(GLContext::IMG_texture_npot))) {
|
||||
return LOCAL_GL_REPEAT;
|
||||
}
|
||||
return LOCAL_GL_CLAMP_TO_EDGE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче