Minor changes
Former-commit-id: 5954ff863d8f51d7ed47a1b84ae9ff0a5348ecce
This commit is contained in:
parent
699328aa1f
commit
e31a670041
|
|
@ -17,7 +17,7 @@ class NzResourceRef
|
|||
static_assert(std::is_base_of<NzResource, T>::value, "ResourceRef should only be used with resource type");
|
||||
|
||||
public:
|
||||
NzResourceRef() = default;
|
||||
NzResourceRef();
|
||||
NzResourceRef(T* resource);
|
||||
NzResourceRef(const NzResourceRef& ref);
|
||||
NzResourceRef(NzResourceRef&& ref) noexcept;
|
||||
|
|
@ -37,7 +37,7 @@ class NzResourceRef
|
|||
NzResourceRef& operator=(NzResourceRef&& ref) noexcept;
|
||||
|
||||
private:
|
||||
T* m_resource = nullptr;
|
||||
T* m_resource;
|
||||
};
|
||||
|
||||
#include <Nazara/Core/ResourceRef.inl>
|
||||
|
|
|
|||
|
|
@ -5,6 +5,12 @@
|
|||
#include <Nazara/Core/Initializer.hpp>
|
||||
#include <Nazara/Core/Debug.hpp>
|
||||
|
||||
template<typename T>
|
||||
NzResourceRef<T>::NzResourceRef() :
|
||||
m_resource(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
NzResourceRef<T>::NzResourceRef(T* resource) :
|
||||
m_resource(resource)
|
||||
|
|
|
|||
|
|
@ -1197,13 +1197,14 @@ void NzOpenGL::Uninitialize()
|
|||
{
|
||||
if (s_initialized)
|
||||
{
|
||||
s_initialized = false;
|
||||
|
||||
NzContext::Uninitialize();
|
||||
|
||||
for (bool& ext : s_openGLextensions)
|
||||
ext = false;
|
||||
|
||||
s_glslVersion = 0;
|
||||
s_initialized = false;
|
||||
s_openGLextensionSet.clear();
|
||||
s_openglVersion = 0;
|
||||
s_rendererName.Clear(false);
|
||||
|
|
|
|||
Loading…
Reference in New Issue