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
parent 999f0ff6
#define MAJOR_VERSION 1 #define MAJOR_VERSION 1
#define MINOR_VERSION 0 #define MINOR_VERSION 0
#define BUILD_VERSION 0 #define BUILD_VERSION 0
#define BUILD_REVISION 1147 #define BUILD_REVISION 1155
#define STRINGIFY(x) #x #define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x) #define MACRO_STRINGIFY(x) STRINGIFY(x)
......
...@@ -769,6 +769,10 @@ namespace dx2es ...@@ -769,6 +769,10 @@ namespace dx2es
unsigned int GetStencilSize(D3DFORMAT stencilFormat) unsigned int GetStencilSize(D3DFORMAT stencilFormat)
{ {
if (stencilFormat == D3DFMT_INTZ)
{
return 8;
}
switch(stencilFormat) switch(stencilFormat)
{ {
case D3DFMT_D24FS8: case D3DFMT_D24FS8:
...@@ -879,6 +883,10 @@ unsigned int GetBlueSize(D3DFORMAT colorFormat) ...@@ -879,6 +883,10 @@ unsigned int GetBlueSize(D3DFORMAT colorFormat)
unsigned int GetDepthSize(D3DFORMAT depthFormat) unsigned int GetDepthSize(D3DFORMAT depthFormat)
{ {
if (depthFormat == D3DFMT_INTZ)
{
return 24;
}
switch (depthFormat) switch (depthFormat)
{ {
case D3DFMT_D16_LOCKABLE: return 16; case D3DFMT_D16_LOCKABLE: return 16;
...@@ -976,6 +984,10 @@ GLenum ConvertBackBufferFormat(D3DFORMAT format) ...@@ -976,6 +984,10 @@ GLenum ConvertBackBufferFormat(D3DFORMAT format)
GLenum ConvertDepthStencilFormat(D3DFORMAT format) GLenum ConvertDepthStencilFormat(D3DFORMAT format)
{ {
if (format == D3DFMT_INTZ)
{
return GL_DEPTH24_STENCIL8_OES;
}
switch (format) switch (format)
{ {
case D3DFMT_D16: case D3DFMT_D16:
......
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