Changed: Minor changes

This commit is contained in:
kervala 2015-11-15 13:29:34 +01:00
parent fb8eb7db70
commit 397be6cfbb
9 changed files with 17 additions and 10 deletions

View file

@ -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

View file

@ -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());

View file

@ -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;

View file

@ -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);
} }
} }

View file

@ -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; }
}; };

View file

@ -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();

View file

@ -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; }
}; };

View file

@ -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
{ {