GLES hardware doen't read depth, so I assume ARM based machine can'tt either

This commit is contained in:
ptitSeb 2016-04-06 16:30:39 +02:00
parent b76bbc77d4
commit 7590c3ca04

5
Sources/Engine/Graphics/DrawPort.cpp Normal file → Executable file
View File

@ -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) );