Changed: Minor changes
This commit is contained in:
parent
c210bb0e88
commit
9aa47b4836
9 changed files with 17 additions and 10 deletions
|
@ -1793,8 +1793,15 @@ void registerGlExtensions(CGlExtensions &ext)
|
|||
|
||||
if (ext.NVXGPUMemoryInfo)
|
||||
{
|
||||
// GPU_MEMORY_INFO_EVICTION_COUNT_NVX;
|
||||
// GPU_MEMORY_INFO_EVICTED_MEMORY_NVX;
|
||||
GLint nEvictionCount = 0;
|
||||
#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;
|
||||
#ifdef GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX
|
||||
|
|
|
@ -53,7 +53,7 @@ using namespace NL3D;
|
|||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Out a string to the stdout and log.log
|
||||
void outString (string &sText)
|
||||
void outString (const string &sText)
|
||||
{
|
||||
createDebug ();
|
||||
InfoLog->displayRaw(sText.c_str());
|
||||
|
|
|
@ -483,7 +483,7 @@ XMLR2EDInterfaceFiles =
|
|||
{
|
||||
"r2ed.xml",
|
||||
"r2_triggers.xml",
|
||||
"r2_logic_entities.xml",
|
||||
"r2_logic_entities.xml",
|
||||
"r2ed_acts.xml",
|
||||
"r2ed_scenario.xml",
|
||||
"r2ed_connect.xml"
|
||||
|
|
|
@ -258,7 +258,7 @@ public:
|
|||
|
||||
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
|
||||
offset += filters[i].length() + 1;
|
||||
|
|
|
@ -2475,7 +2475,7 @@ void CClientEditionModule::loadScenarioSucceded(const std::string& filename, con
|
|||
}
|
||||
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
|
||||
{
|
||||
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(); }
|
||||
bool operator() (const NLMISC::CEntityId& left, const NLMISC::CEntityId& right) { return left < right; }
|
||||
};
|
||||
|
|
|
@ -71,7 +71,7 @@ typedef uint32 TUid;
|
|||
*/
|
||||
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
|
||||
{
|
||||
//return x.port();
|
||||
|
|
|
@ -139,7 +139,7 @@ public:
|
|||
|
||||
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 &left, const NLMISC::CEntityId &right) const { return left < right; }
|
||||
};
|
||||
|
|
|
@ -490,7 +490,7 @@ typedef std::vector<CObjectIndex> TIndexList;
|
|||
|
||||
struct CColumnIndexHashMapTraits
|
||||
{
|
||||
enum { bucket_size = 4, min_buckets = 8, };
|
||||
enum { bucket_size = 4, min_buckets = 8 };
|
||||
CColumnIndexHashMapTraits() { }
|
||||
size_t operator() (const CColumnIndex &id) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue