Immutable textures are always mipmap complete.

TRAC #18730 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@883 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 6364b350
#define MAJOR_VERSION 0 #define MAJOR_VERSION 0
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 882 #define BUILD_REVISION 883
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -2042,6 +2042,11 @@ bool Texture2D::isSamplerComplete() const ...@@ -2042,6 +2042,11 @@ bool Texture2D::isSamplerComplete() const
// Tests for 2D texture (mipmap) completeness. [OpenGL ES 2.0.24] section 3.7.10 page 81. // Tests for 2D texture (mipmap) completeness. [OpenGL ES 2.0.24] section 3.7.10 page 81.
bool Texture2D::isMipmapComplete() const bool Texture2D::isMipmapComplete() const
{ {
if (isImmutable())
{
return true;
}
GLsizei width = mImageArray[0].getWidth(); GLsizei width = mImageArray[0].getWidth();
GLsizei height = mImageArray[0].getHeight(); GLsizei height = mImageArray[0].getHeight();
...@@ -2509,6 +2514,11 @@ bool TextureCubeMap::isCubeComplete() const ...@@ -2509,6 +2514,11 @@ bool TextureCubeMap::isCubeComplete() const
bool TextureCubeMap::isMipmapCubeComplete() const bool TextureCubeMap::isMipmapCubeComplete() const
{ {
if (isImmutable())
{
return true;
}
if (!isCubeComplete()) if (!isCubeComplete())
{ {
return false; return false;
......
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