Handle all INTZ format queries.
TRAC #20959
Signed-off-by: Daniel Koch
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1155 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/common/version.h b/src/common/version.h
index 61bb547..6814512 100644
--- a/src/common/version.h
+++ b/src/common/version.h
@@ -1,7 +1,7 @@
#define MAJOR_VERSION 1
#define MINOR_VERSION 0
#define BUILD_VERSION 0
-#define BUILD_REVISION 1147
+#define BUILD_REVISION 1155
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
diff --git a/src/libGLESv2/utilities.cpp b/src/libGLESv2/utilities.cpp
index 44105c0..29892fa 100644
--- a/src/libGLESv2/utilities.cpp
+++ b/src/libGLESv2/utilities.cpp
@@ -769,6 +769,10 @@
unsigned int GetStencilSize(D3DFORMAT stencilFormat)
{
+ if (stencilFormat == D3DFMT_INTZ)
+ {
+ return 8;
+ }
switch(stencilFormat)
{
case D3DFMT_D24FS8:
@@ -879,6 +883,10 @@
unsigned int GetDepthSize(D3DFORMAT depthFormat)
{
+ if (depthFormat == D3DFMT_INTZ)
+ {
+ return 24;
+ }
switch (depthFormat)
{
case D3DFMT_D16_LOCKABLE: return 16;
@@ -976,6 +984,10 @@
GLenum ConvertDepthStencilFormat(D3DFORMAT format)
{
+ if (format == D3DFMT_INTZ)
+ {
+ return GL_DEPTH24_STENCIL8_OES;
+ }
switch (format)
{
case D3DFMT_D16: