Home
last modified time | relevance | path

Searched refs:currTextureUnit (Results 1 – 1 of 1) sorted by relevance

/hardware/google/gfxstream/host/gl/glestranslator/GLES_CM/
DCoreProfileEngine.cpp812 unsigned int currTextureUnit = mCtx->getActiveTextureUnit(); in preDrawTextureUnitEmulation() local
818 gl.glUniform1i(m_geometryDrawState.textureSamplerLoc, currTextureUnit * 2); in preDrawTextureUnitEmulation()
819 gl.glUniform1i(m_geometryDrawState.textureCubeSamplerLoc, currTextureUnit * 2 + 1); in preDrawTextureUnitEmulation()
821 …if (auto cubeMapTex = mCtx->getBindedTexture(currTextureUnit + GL_TEXTURE0, GL_TEXTURE_CUBE_MAP)) { in preDrawTextureUnitEmulation()
824 gl.glActiveTexture(GL_TEXTURE0 + currTextureUnit * 2); in preDrawTextureUnitEmulation()
826 gl.glActiveTexture(GL_TEXTURE0 + currTextureUnit * 2 + 1); in preDrawTextureUnitEmulation()
828 gl.glActiveTexture(GL_TEXTURE0 + currTextureUnit * 2); in preDrawTextureUnitEmulation()
856 unsigned int currTextureUnit = mCtx->getActiveTextureUnit(); in postDrawTextureUnitEmulation() local
858 GLuint cubeMapTex = mCtx->getBindedTexture(currTextureUnit + GL_TEXTURE0, GL_TEXTURE_CUBE_MAP); in postDrawTextureUnitEmulation()
863 gl.glActiveTexture(GL_TEXTURE0 + currTextureUnit * 2); in postDrawTextureUnitEmulation()
[all …]