Commit a582b31d by Nicolas Capens Committed by Nicolas Capens

Fix creating external textures from EGL images.

BUG=14610416 Change-Id: Ice828f206630a1e9a92af2139ef38a3a7a8e835a Reviewed-on: https://swiftshader-review.googlesource.com/1110Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent e9c5e4f1
...@@ -301,6 +301,10 @@ void ResourceManager::checkTextureAllocation(GLuint texture, TextureType type) ...@@ -301,6 +301,10 @@ void ResourceManager::checkTextureAllocation(GLuint texture, TextureType type)
{ {
textureObject = new TextureCubeMap(texture); textureObject = new TextureCubeMap(texture);
} }
else if(type == TEXTURE_EXTERNAL)
{
textureObject = new TextureExternal(texture);
}
else else
{ {
UNREACHABLE(); UNREACHABLE();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment