Mark configs with a format different from the display mode as non-conformant
TRAC #12197
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@251 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/libEGL/Config.cpp b/src/libEGL/Config.cpp
index 38eaa44..7f10c4b 100644
--- a/src/libEGL/Config.cpp
+++ b/src/libEGL/Config.cpp
@@ -117,16 +117,16 @@
     mBindToTextureRGB = EGL_FALSE;
     mBindToTextureRGBA = EGL_FALSE;
     mColorBufferType = EGL_RGB_BUFFER;
-    mConfigCaveat = (displayMode.Format == renderTargetFormat) ? EGL_NONE : EGL_SLOW_CONFIG;
+    mConfigCaveat = (displayMode.Format == renderTargetFormat) ? EGL_NONE : (EGL_SLOW_CONFIG | EGL_NON_CONFORMANT_CONFIG);
     mConfigID = 0;
     mConformant = EGL_OPENGL_ES2_BIT;
 
     switch (depthStencilFormat)
     {
-//      case D3DFMT_D16_LOCKABLE:
-//        mDepthSize = 16;
-//        mStencilSize = 0;
-//        break;
+//    case D3DFMT_D16_LOCKABLE:
+//      mDepthSize = 16;
+//      mStencilSize = 0;
+//      break;
       case D3DFMT_D32:
         mDepthSize = 32;
         mStencilSize = 0;
@@ -152,13 +152,13 @@
         mStencilSize = 0;
         break;
 //    case D3DFMT_D32F_LOCKABLE:
-//        mDepthSize = 32;
-//        mStencilSize = 0;
-//        break;
+//      mDepthSize = 32;
+//      mStencilSize = 0;
+//      break;
 //    case D3DFMT_D24FS8:
-//        mDepthSize = 24;
-//        mStencilSize = 8;
-//        break;
+//      mDepthSize = 24;
+//      mStencilSize = 8;
+//      break;
       default:
         UNREACHABLE();
     }