Lines Matching refs:unit
197 void useTextureUnit(GLuint unit) { in useTextureUnit() argument
203 if (unit < maxTextureUnits) { in useTextureUnit()
204 m_active_texture_unit = unit; in useTextureUnit()
209 unit, maxTextureUnits); in useTextureUnit()
267 GLuint createAndBindTexture(GLuint unit, GLenum bindPoint) { in createAndBindTexture() argument
271 if (unit >= maxTextureUnits) { in createAndBindTexture()
275 unit, maxTextureUnits, maxTextureUnits - 1); in createAndBindTexture()
276 unit = maxTextureUnits - 1; in createAndBindTexture()
281 gl->glActiveTexture(GL_TEXTURE0 + unit); in createAndBindTexture()
286 m_unit_states[unit].binding2D = testTexture; in createAndBindTexture()
289 m_unit_states[unit].bindingCubeMap = testTexture; in createAndBindTexture()