mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
GLES hardware doen't read depth, so I assume ARM based machine can'tt either
This commit is contained in:
parent
b76bbc77d4
commit
7590c3ca04
5
Sources/Engine/Graphics/DrawPort.cpp
Normal file → Executable file
5
Sources/Engine/Graphics/DrawPort.cpp
Normal file → Executable 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) );
|
||||
|
|
Loading…
Reference in New Issue
Block a user