зеркало из https://github.com/mozilla/moz-skia.git
Fix Android texture cacheID issue (npot flag not generated correctly)
https://codereview.appspot.com/7042046/ git-svn-id: http://skia.googlecode.com/svn/trunk@7018 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
Родитель
90533be035
Коммит
be61c05d89
|
@ -136,8 +136,8 @@ GrResourceKey::ResourceFlags get_texture_flags(const GrGpu* gpu,
|
|||
const GrTextureDesc& desc) {
|
||||
GrResourceKey::ResourceFlags flags = 0;
|
||||
bool tiled = NULL != params && params->isTiled();
|
||||
if (tiled & !gpu->getCaps().npotTextureTileSupport()) {
|
||||
if (!GrIsPow2(desc.fWidth) || GrIsPow2(desc.fHeight)) {
|
||||
if (tiled && !gpu->getCaps().npotTextureTileSupport()) {
|
||||
if (!GrIsPow2(desc.fWidth) || !GrIsPow2(desc.fHeight)) {
|
||||
flags |= kStretchToPOT_TextureFlag;
|
||||
if (params->isBilerp()) {
|
||||
flags |= kFilter_TextureFlag;
|
||||
|
|
Загрузка…
Ссылка в новой задаче