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