EmuGL: GLESv2 support for OES_EGL_image_external

Change-Id: I8911328d5dcccdf4731bd2d8fd953c12fdec5f1b
This commit is contained in:
Jesse Hall
2011-11-23 10:12:05 -08:00
parent 00e61338b8
commit d6bd1843ce
7 changed files with 791 additions and 74 deletions

View File

@@ -250,6 +250,11 @@ GLenum GLClientState::setActiveTextureUnit(GLenum texture)
return GL_NO_ERROR;
}
GLenum GLClientState::getActiveTextureUnit() const
{
return GL_TEXTURE0 + (m_tex.activeUnit - &m_tex.unit[0]);
}
void GLClientState::enableTextureTarget(GLenum target)
{
switch (target) {