Updated glGenerateMipmap to accept the GL_TEXTURE_3D target.

TRAC #22705 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Geoff Lang git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2173 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 875994b3
......@@ -3155,6 +3155,23 @@ void __stdcall glGenerateMipmap(GLenum target)
break;
}
case GL_TEXTURE_3D:
{
if (context->getClientVersion() < 3)
{
return gl::error(GL_INVALID_ENUM);
}
gl::Texture3D *tex3D = context->getTexture3D();
if (tex3D->isCompressed(0))
{
return gl::error(GL_INVALID_OPERATION);
}
tex3D->generateMipmaps();
break;
}
default:
return gl::error(GL_INVALID_ENUM);
}
......
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