Fixed missing cases for creating incomplete 3D and 2DArray textures.

TRAC #22956 Signed-off-by: Jamie Madill Signed-off-by: Shannon Woods Author: Geoff Lang git-svn-id: https://angleproject.googlecode.com/svn/branches/es3proto@2357 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 5d4468e9
...@@ -2777,6 +2777,24 @@ Texture *Context::getIncompleteTexture(TextureType type) ...@@ -2777,6 +2777,24 @@ Texture *Context::getIncompleteTexture(TextureType type)
t = incompleteCube; t = incompleteCube;
} }
break; break;
case TEXTURE_3D:
{
Texture3D *incomplete3d = new Texture3D(mRenderer, Texture::INCOMPLETE_TEXTURE_ID);
incomplete3d->setImage(0, 1, 1, 1, GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 1, color);
t = incomplete3d;
}
break;
case TEXTURE_2D_ARRAY:
{
Texture2DArray *incomplete2darray = new Texture2DArray(mRenderer, Texture::INCOMPLETE_TEXTURE_ID);
incomplete2darray->setImage(0, 1, 1, 1, GL_RGBA, GL_RGBA, GL_UNSIGNED_BYTE, 1, color);
t = incomplete2darray;
}
break;
} }
mIncompleteTextures[type].set(t); mIncompleteTextures[type].set(t);
......
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