EgtGraphics 2.3h1 :

- versione x64 compilata con clang-cl
- correzioni e migliorie suggerite dal nuovo compilatore.
This commit is contained in:
DarioS
2021-08-01 10:51:34 +02:00
parent 4aeb693d22
commit 23e1384e19
5 changed files with 10 additions and 6 deletions
BIN
View File
Binary file not shown.
+4 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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 ;
}