Files
MINGW-packages/mingw-w64-angleproject-git/angleproject-fix-renderer9-stencilformat.patch
2014-02-07 15:48:28 +04:00

24 lines
709 B
Diff

--- src.orig/libGLESv2/renderer/d3d9/renderer9_utils.cpp 2014-01-17 22:54:45.401522829 +0100
+++ src/libGLESv2/renderer/d3d9/renderer9_utils.cpp 2014-01-17 22:54:52.004935151 +0100
@@ -13,6 +13,7 @@
#include "libGLESv2/Context.h"
#include "common/debug.h"
+#include <stdio.h>
namespace gl_d3d9
{
@@ -381,9 +382,12 @@ GLenum ConvertDepthStencilFormat(D3DFORM
return GL_DEPTH_COMPONENT16;
case D3DFMT_D24S8:
return GL_DEPTH24_STENCIL8_OES;
+ case D3DFMT_D32:
+ return GL_DEPTH_COMPONENT16;
case D3DFMT_UNKNOWN:
return GL_NONE;
default:
+ printf("unknown D3DFORMAT (stencil format): %d\n", (int)format);
UNREACHABLE();
}