bug:
5361337
Fixes issue with garbage being drawn in unpainted tiles, and also allocates
tiles very lazily.
Change-Id: I9799b63670a80748a4809b61506da96a739d3a65
{
if (m_ownTextureId)
GLUtils::deleteTexture(&m_ownTextureId);
+ release(m_owner);
}
void BaseTileTexture::destroyTextures(SharedTexture** textures)
bool BaseTileTexture::readyFor(BaseTile* baseTile)
{
- if (!m_ownTextureId) {
- // If our backing opengl texture doesn't exist, allocate it and return
- // false since it won't have useful data
- requireTexture();
- return false;
- }
-
const TextureTileInfo* info = &m_ownTextureTileInfo;
if (info &&
(info->m_x == baseTile->x()) &&