From 7590c3ca0447aecbf74bd0808b2c4f48bb05833b Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 6 Apr 2016 16:30:39 +0200 Subject: [PATCH] GLES hardware doen't read depth, so I assume ARM based machine can'tt either --- Sources/Engine/Graphics/DrawPort.cpp | 5 +++++ 1 file changed, 5 insertions(+) mode change 100644 => 100755 Sources/Engine/Graphics/DrawPort.cpp diff --git a/Sources/Engine/Graphics/DrawPort.cpp b/Sources/Engine/Graphics/DrawPort.cpp old mode 100644 new mode 100755 index 8af58ab..b53468d --- a/Sources/Engine/Graphics/DrawPort.cpp +++ b/Sources/Engine/Graphics/DrawPort.cpp @@ -1028,6 +1028,11 @@ BOOL CDrawPort::IsPointVisible( PIX pixI, PIX pixJ, FLOAT fOoK, INDEX iID, INDEX // if the point is out or at the edge of drawport, it is not visible by default if( pixI<1 || pixI>dp_Width-2 || pixJ<1 || pixJ>dp_Height-2) return FALSE; + #ifdef __arm__ + // Assuming here that all ARM machine use GLES based GPU, were DEPTH reading is probably not available (or super slow) + return FALSE; + #endif + // check API const GfxAPIType eAPI = _pGfx->gl_eCurrentAPI; ASSERT( GfxValidApi(eAPI) );