Commits

David Rogers  committed c284249

GLES: Fix RTT's. The issue is that combined depth/stencil buffers are not supported as a render buffer format.

  • Participants
  • Parent commits c679e5b
  • Branches v1-8

Comments (0)

Files changed (2)

File RenderSystems/GLES/src/OgreGLESDepthBuffer.cpp

 				break;
 #endif
 
+#if GL_OES_packed_depth_stencil
+            case GL_DEPTH24_STENCIL8_OES:  // Packed depth / stencil
+#endif
 #if GL_OES_depth24
 			case GL_DEPTH_COMPONENT24_OES:
 				mBitDepth = 32;

File RenderSystems/GLES/src/OgreGLESRenderSystem.cpp

 																fbo->getHeight(), fbo->getFSAA() );
 
 			GLESRenderBuffer *stencilBuffer = depthBuffer;
-			if( stencilBuffer )
+			if( 
+               // not supported on AMD emulation for now...
+#ifdef GL_DEPTH24_STENCIL8_OES
+               depthFormat != GL_DEPTH24_STENCIL8_OES && 
+#endif
+               stencilBuffer )
 			{
 				stencilBuffer = OGRE_NEW GLESRenderBuffer( stencilFormat, fbo->getWidth(),
 													fbo->getHeight(), fbo->getFSAA() );