mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-20 16:08:44 +00:00
Changed: Minor changes
--HG-- branch : develop
This commit is contained in:
parent
334f2b43c6
commit
817486538c
9 changed files with 17 additions and 10 deletions
|
@ -1793,8 +1793,15 @@ void registerGlExtensions(CGlExtensions &ext)
|
||||||
|
|
||||||
if (ext.NVXGPUMemoryInfo)
|
if (ext.NVXGPUMemoryInfo)
|
||||||
{
|
{
|
||||||
// GPU_MEMORY_INFO_EVICTION_COUNT_NVX;
|
GLint nEvictionCount = 0;
|
||||||
// GPU_MEMORY_INFO_EVICTED_MEMORY_NVX;
|
#ifdef GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX
|
||||||
|
glGetIntegerv(GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX, &nEvictionCount);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
GLint nEvictionMemory = 0;
|
||||||
|
#ifdef GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX
|
||||||
|
glGetIntegerv(GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX, &nEvictionMemory);
|
||||||
|
#endif
|
||||||
|
|
||||||
GLint nDedicatedMemoryInKB = 0;
|
GLint nDedicatedMemoryInKB = 0;
|
||||||
#ifdef GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX
|
#ifdef GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX
|
||||||
|
|
|
@ -53,7 +53,7 @@ using namespace NL3D;
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------
|
// ---------------------------------------------------------------------------
|
||||||
// Out a string to the stdout and log.log
|
// Out a string to the stdout and log.log
|
||||||
void outString (string &sText)
|
void outString (const string &sText)
|
||||||
{
|
{
|
||||||
createDebug ();
|
createDebug ();
|
||||||
InfoLog->displayRaw(sText.c_str());
|
InfoLog->displayRaw(sText.c_str());
|
||||||
|
|
|
@ -258,7 +258,7 @@ public:
|
||||||
|
|
||||||
for(uint i = 0; i < filters.size(); ++i)
|
for(uint i = 0; i < filters.size(); ++i)
|
||||||
{
|
{
|
||||||
strcpy(szFilters + offset, filters[i].c_str());
|
strcpy(szFilter + offset, filters[i].c_str());
|
||||||
|
|
||||||
// move offset to string length + 1 for \0
|
// move offset to string length + 1 for \0
|
||||||
offset += filters[i].length() + 1;
|
offset += filters[i].length() + 1;
|
||||||
|
|
|
@ -2475,7 +2475,7 @@ void CClientEditionModule::loadScenarioSucceded(const std::string& filename, con
|
||||||
}
|
}
|
||||||
if (CFile::fileExists(filename))
|
if (CFile::fileExists(filename))
|
||||||
{
|
{
|
||||||
CFile::copyFile("save/r2_buffer.dat", filename.c_str());
|
CFile::copyFile("save/r2_buffer.dat", filename);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ private:
|
||||||
|
|
||||||
struct CIdHash
|
struct CIdHash
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
size_t operator () (NLMISC::CEntityId id) const { return (uint32)id.getShortId(); }
|
size_t operator () (NLMISC::CEntityId id) const { return (uint32)id.getShortId(); }
|
||||||
bool operator() (const NLMISC::CEntityId& left, const NLMISC::CEntityId& right) { return left < right; }
|
bool operator() (const NLMISC::CEntityId& left, const NLMISC::CEntityId& right) { return left < right; }
|
||||||
};
|
};
|
||||||
|
|
|
@ -71,7 +71,7 @@ typedef uint32 TUid;
|
||||||
*/
|
*/
|
||||||
struct CInetAddressHashMapTraits
|
struct CInetAddressHashMapTraits
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
inline size_t operator() ( const NLNET::CInetAddress& x ) const
|
inline size_t operator() ( const NLNET::CInetAddress& x ) const
|
||||||
{
|
{
|
||||||
//return x.port();
|
//return x.port();
|
||||||
|
|
|
@ -139,7 +139,7 @@ public:
|
||||||
|
|
||||||
struct CEntityIdHash
|
struct CEntityIdHash
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
size_t operator () (const NLMISC::CEntityId &id) const { return (uint32)id.getShortId(); }
|
size_t operator () (const NLMISC::CEntityId &id) const { return (uint32)id.getShortId(); }
|
||||||
size_t operator () (const NLMISC::CEntityId &left, const NLMISC::CEntityId &right) const { return left < right; }
|
size_t operator () (const NLMISC::CEntityId &left, const NLMISC::CEntityId &right) const { return left < right; }
|
||||||
};
|
};
|
||||||
|
|
|
@ -490,7 +490,7 @@ typedef std::vector<CObjectIndex> TIndexList;
|
||||||
|
|
||||||
struct CColumnIndexHashMapTraits
|
struct CColumnIndexHashMapTraits
|
||||||
{
|
{
|
||||||
enum { bucket_size = 4, min_buckets = 8, };
|
enum { bucket_size = 4, min_buckets = 8 };
|
||||||
CColumnIndexHashMapTraits() { }
|
CColumnIndexHashMapTraits() { }
|
||||||
size_t operator() (const CColumnIndex &id) const
|
size_t operator() (const CColumnIndex &id) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue