Lines Matching defs:unit
63 memset(m_tex.unit, 0, sizeof(m_tex.unit));
64 m_tex.activeUnit = &m_tex.unit[0];
250 GLuint unit = texture - GL_TEXTURE0;
251 if (unit >= MAX_TEXTURE_UNITS) {
254 m_tex.activeUnit = &m_tex.unit[unit];
260 return GL_TEXTURE0 + (m_tex.activeUnit - &m_tex.unit[0]);
410 for (TextureUnit* unit = m_tex.unit;
411 unit != m_tex.unit + MAX_TEXTURE_UNITS;
412 unit++)
414 if (unit->texture[TEXTURE_2D] == *texture) {
415 unit->texture[TEXTURE_2D] = 0;
416 } else if (unit->texture[TEXTURE_EXTERNAL] == *texture) {
417 unit->texture[TEXTURE_EXTERNAL] = 0;