mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2025-03-21 13:50:04 +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 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;
|
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
|
// check API
|
||||||
const GfxAPIType eAPI = _pGfx->gl_eCurrentAPI;
|
const GfxAPIType eAPI = _pGfx->gl_eCurrentAPI;
|
||||||
ASSERT( GfxValidApi(eAPI) );
|
ASSERT( GfxValidApi(eAPI) );
|
||||||
|
Loading…
x
Reference in New Issue
Block a user