EgtGraphics 2.3h1 :
- versione x64 compilata con clang-cl - correzioni e migliorie suggerite dal nuovo compilatore.
This commit is contained in:
Binary file not shown.
+4
-2
@@ -35,7 +35,7 @@
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<PlatformToolset>ClangCL</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>DynamicLibrary</ConfigurationType>
|
||||
@@ -49,7 +49,7 @@
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<PlatformToolset>ClangCL</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
@@ -134,6 +134,7 @@ copy $(TargetPath) \EgtProg\DllD32</Command>
|
||||
<OpenMPSupport>true</OpenMPSupport>
|
||||
<DisableSpecificWarnings>
|
||||
</DisableSpecificWarnings>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
@@ -205,6 +206,7 @@ copy $(TargetPath) \EgtProg\Dll32</Command>
|
||||
<EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations>
|
||||
<EnableParallelCodeGeneration>true</EnableParallelCodeGeneration>
|
||||
<CompileAs>CompileAsCpp</CompileAs>
|
||||
<LanguageStandard>stdcpp17</LanguageStandard>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Windows</SubSystem>
|
||||
|
||||
+1
-1
@@ -30,7 +30,7 @@ CreateEgrImageMgr( void)
|
||||
{
|
||||
// verifico la chiave e le opzioni
|
||||
if ( ! TestKeyForEGr( GetEGrKey(), 0, GetEGrLogger()))
|
||||
return false ;
|
||||
return nullptr ;
|
||||
// creo l'oggetto
|
||||
return static_cast<IEgrImageMgr*> ( new(nothrow) ImageMgr) ;
|
||||
}
|
||||
|
||||
+1
-1
@@ -86,7 +86,7 @@ class ObjOldGraphics : public ObjEGrGraphics
|
||||
{ b3Loc = m_b3Loc ; return ! m_b3Loc.IsEmpty() ; }
|
||||
|
||||
public :
|
||||
ObjOldGraphics( void) : m_pScene( nullptr), m_nCurrMode( GL_NONE), m_bValid( false) {}
|
||||
ObjOldGraphics( void) : m_pScene( nullptr), m_bValid( false), m_nCurrMode( GL_NONE) {}
|
||||
|
||||
private :
|
||||
bool AddOgAtom( const OgAtom& oga)
|
||||
|
||||
+4
-2
@@ -95,8 +95,10 @@ Scene::GetImage( int nShowMode, Color colBackTop, Color colBackBottom,
|
||||
m_dHalfWidth = dWs ;
|
||||
m_dHalfHeight = dHs ;
|
||||
// Eseguo disegno sul back buffer
|
||||
if ( ! MyDraw( false))
|
||||
if ( ! MyDraw( false)) {
|
||||
delete [] pBuffer ;
|
||||
return false ;
|
||||
}
|
||||
// Leggo l'immagine nel buffer
|
||||
glReadBuffer( GL_BACK) ;
|
||||
glReadPixels( 0, 0, nWidth, nHeight, GL_BGRA, GL_UNSIGNED_BYTE, pBuffer) ;
|
||||
@@ -152,7 +154,7 @@ Scene::GetImage( int nShowMode, Color colBackTop, Color colBackBottom,
|
||||
|
||||
// Libero le risorse
|
||||
FreeImage_Unload( pDib) ;
|
||||
delete pBuffer ;
|
||||
delete [] pBuffer ;
|
||||
|
||||
return bOk ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user