1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0027811: Configuration - allow building TKOpenGl with OpenGL ES on Windows

OpenGl_ShaderManager::prepareStdProgramFboBlit() now tries using extension
GL_EXT_frag_depth within OpenGL ES 2.0 when OpenGL ES 3.0 is not available.
OpenGl_View::blitBuffers() now disables Depth test
when copying depth values is not supported by OpenGL ES 2.0 hardware.

Fixed building for UWP with SDK 10.0.10240.0
Fixed building TKService, TKV3d and TKOpenGl for UWP.

OSD_Environment now defines global environment map
for emulating desktop behavior on UWP.
This commit is contained in:
kgv
2016-08-31 19:34:32 +03:00
committed by bugmaster
parent 21a2b7ccf4
commit 1ce0716bb1
37 changed files with 602 additions and 86 deletions

View File

@@ -316,7 +316,10 @@ void Font_FontMgr::InitFontDataBase()
myListOfFonts.Clear();
Handle(Font_FTLibrary) aFtLibrary;
#if defined(_WIN32)
#if defined(OCCT_UWP)
// system font files are not accessible
(void )aFtLibrary;
#elif defined(_WIN32)
// font directory is placed in "C:\Windows\Fonts\"
UINT aStrLength = GetSystemWindowsDirectoryA (NULL, 0);