Home | History | Annotate | Download | only in OpenglCodecCommon

Lines Matching full:unit

62     memset(m_tex.unit, 0, sizeof(m_tex.unit));
63 m_tex.activeUnit = &m_tex.unit[0];
245 GLuint unit = texture - GL_TEXTURE0;
246 if (unit >= MAX_TEXTURE_UNITS) {
249 m_tex.activeUnit = &m_tex.unit[unit];
255 return GL_TEXTURE0 + (m_tex.activeUnit - &m_tex.unit[0]);
405 for (TextureUnit* unit = m_tex.unit;
406 unit != m_tex.unit + MAX_TEXTURE_UNITS;
407 unit++)
409 if (unit->texture[TEXTURE_2D] == *texture) {
410 unit->texture[TEXTURE_2D] = 0;
411 } else if (unit->texture[TEXTURE_EXTERNAL] == *texture) {
412 unit->texture[TEXTURE_EXTERNAL] = 0;