Lines Matching refs:unit
63 memset(m_tex.unit, 0, sizeof(m_tex.unit)); in GLClientState()
64 m_tex.activeUnit = &m_tex.unit[0]; in GLClientState()
248 GLuint unit = texture - GL_TEXTURE0; in setActiveTextureUnit() local
249 if (unit >= MAX_TEXTURE_UNITS) { in setActiveTextureUnit()
252 m_tex.activeUnit = &m_tex.unit[unit]; in setActiveTextureUnit()
258 return GL_TEXTURE0 + (m_tex.activeUnit - &m_tex.unit[0]); in getActiveTextureUnit()
408 for (TextureUnit* unit = m_tex.unit; in deleteTextures() local
409 unit != m_tex.unit + MAX_TEXTURE_UNITS; in deleteTextures()
410 unit++) in deleteTextures()
412 if (unit->texture[TEXTURE_2D] == *texture) { in deleteTextures()
413 unit->texture[TEXTURE_2D] = 0; in deleteTextures()
414 } else if (unit->texture[TEXTURE_EXTERNAL] == *texture) { in deleteTextures()
415 unit->texture[TEXTURE_EXTERNAL] = 0; in deleteTextures()