Added support for OpenGL debug mode
When NzContextParameters.debugMode is true, Nazara will receive OpenGL's debug message and send them to Nazara's log NzString::Pointer now have the "0x" prefix Added support for ARB_texture_storage extension Nazara now try to load core texture 3D before trying to load EXT_texture3D Added NazaraNotice macro, writing raw text into Nazara's log Added NzContext::Destroy (called in Create)
This commit is contained in:
@@ -4735,9 +4735,9 @@ NzString NzString::Number(unsigned long long number, nzUInt8 radix)
|
||||
|
||||
NzString NzString::Pointer(const void* ptr)
|
||||
{
|
||||
unsigned int size = sizeof(ptr)*2;
|
||||
unsigned int size = sizeof(ptr)*2+2;
|
||||
char* str = new char[size+1];
|
||||
std::sprintf(str, "%p", ptr);
|
||||
std::sprintf(str, "0x%p", ptr);
|
||||
|
||||
return NzString(new SharedString(1, size, size, str));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user