Răsfoiți Sursa

Fixed typo. Issue #196.

Branimir Karadžić 11 ani în urmă
părinte
comite
3e4b82e7fe

+ 1 - 1
src/glcontext_eagl.h

@@ -25,7 +25,7 @@ namespace bgfx
 
 
 		static bool isSwapChainSupported();
 		static bool isSwapChainSupported();
 		SwapChainGL* createSwapChain(void* _nwh);
 		SwapChainGL* createSwapChain(void* _nwh);
-		void destorySwapChain(SwapChainGL*  _swapChain);
+		void destroySwapChain(SwapChainGL*  _swapChain);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 
 

+ 1 - 1
src/glcontext_eagl.mm

@@ -102,7 +102,7 @@ namespace bgfx
 		return NULL;
 		return NULL;
 	}
 	}
 
 
-	void GlContext::destorySwapChain(SwapChainGL*  /*_swapChain*/)
+	void GlContext::destroySwapChain(SwapChainGL*  /*_swapChain*/)
 	{
 	{
 		BX_CHECK(false, "Shouldn't be called!");
 		BX_CHECK(false, "Shouldn't be called!");
 	}
 	}

+ 1 - 1
src/glcontext_egl.cpp

@@ -294,7 +294,7 @@ EGL_IMPORT
 		return BX_NEW(g_allocator, SwapChainGL)(m_display, m_config, m_context, (EGLNativeWindowType)_nwh);
 		return BX_NEW(g_allocator, SwapChainGL)(m_display, m_config, m_context, (EGLNativeWindowType)_nwh);
 	}
 	}
 
 
-	void GlContext::destorySwapChain(SwapChainGL* _swapChain)
+	void GlContext::destroySwapChain(SwapChainGL* _swapChain)
 	{
 	{
 		BX_DELETE(g_allocator, _swapChain);
 		BX_DELETE(g_allocator, _swapChain);
 	}
 	}

+ 1 - 1
src/glcontext_egl.h

@@ -29,7 +29,7 @@ namespace bgfx
 
 
 		static bool isSwapChainSupported();
 		static bool isSwapChainSupported();
 		SwapChainGL* createSwapChain(void* _nwh);
 		SwapChainGL* createSwapChain(void* _nwh);
-		void destorySwapChain(SwapChainGL*  _swapChain);
+		void destroySwapChain(SwapChainGL*  _swapChain);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 
 

+ 1 - 1
src/glcontext_glx.cpp

@@ -248,7 +248,7 @@ namespace bgfx
 		return BX_NEW(g_allocator, SwapChainGL)( (::Window)_nwh, m_visualInfo, m_context);
 		return BX_NEW(g_allocator, SwapChainGL)( (::Window)_nwh, m_visualInfo, m_context);
 	}
 	}
 
 
-	void GlContext::destorySwapChain(SwapChainGL* _swapChain)
+	void GlContext::destroySwapChain(SwapChainGL* _swapChain)
 	{
 	{
 		BX_DELETE(g_allocator, _swapChain);
 		BX_DELETE(g_allocator, _swapChain);
 	}
 	}

+ 1 - 1
src/glcontext_glx.h

@@ -29,7 +29,7 @@ namespace bgfx
 
 
 		static bool isSwapChainSupported();
 		static bool isSwapChainSupported();
 		SwapChainGL* createSwapChain(void* _nwh);
 		SwapChainGL* createSwapChain(void* _nwh);
-		void destorySwapChain(SwapChainGL*  _swapChain);
+		void destroySwapChain(SwapChainGL*  _swapChain);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 
 

+ 1 - 1
src/glcontext_nsgl.h

@@ -25,7 +25,7 @@ namespace bgfx
 
 
 		static bool isSwapChainSupported();
 		static bool isSwapChainSupported();
 		SwapChainGL* createSwapChain(void* _nwh);
 		SwapChainGL* createSwapChain(void* _nwh);
-		void destorySwapChain(SwapChainGL*  _swapChain);
+		void destroySwapChain(SwapChainGL*  _swapChain);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 
 

+ 1 - 1
src/glcontext_nsgl.mm

@@ -119,7 +119,7 @@ namespace bgfx
 		return BX_NEW(g_allocator, SwapChainGL)(_nwh);
 		return BX_NEW(g_allocator, SwapChainGL)(_nwh);
 	}
 	}
 
 
-	void GlContext::destorySwapChain(SwapChainGL* _swapChain)
+	void GlContext::destroySwapChain(SwapChainGL* _swapChain)
 	{
 	{
 		BX_DELETE(g_allocator, _swapChain);
 		BX_DELETE(g_allocator, _swapChain);
 	}
 	}

+ 1 - 1
src/glcontext_ppapi.cpp

@@ -169,7 +169,7 @@ namespace bgfx
 		return NULL;
 		return NULL;
 	}
 	}
 
 
-	void GlContext::destorySwapChain(SwapChainGL*  /*_swapChain*/)
+	void GlContext::destroySwapChain(SwapChainGL*  /*_swapChain*/)
 	{
 	{
 		BX_CHECK(false, "Shouldn't be called!");
 		BX_CHECK(false, "Shouldn't be called!");
 	}
 	}

+ 1 - 1
src/glcontext_ppapi.h

@@ -29,7 +29,7 @@ namespace bgfx
 
 
 		static bool isSwapChainSupported();
 		static bool isSwapChainSupported();
 		SwapChainGL* createSwapChain(void* _nwh);
 		SwapChainGL* createSwapChain(void* _nwh);
-		void destorySwapChain(SwapChainGL*  _swapChain);
+		void destroySwapChain(SwapChainGL*  _swapChain);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 
 

+ 1 - 1
src/glcontext_wgl.cpp

@@ -311,7 +311,7 @@ namespace bgfx
 		return swapChain;
 		return swapChain;
 	}
 	}
 
 
-	void GlContext::destorySwapChain(SwapChainGL*  _swapChain)
+	void GlContext::destroySwapChain(SwapChainGL*  _swapChain)
 	{
 	{
 		BX_DELETE(g_allocator, _swapChain);
 		BX_DELETE(g_allocator, _swapChain);
 	}
 	}

+ 1 - 1
src/glcontext_wgl.h

@@ -73,7 +73,7 @@ typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum z
 
 
 		static bool isSwapChainSupported();
 		static bool isSwapChainSupported();
 		SwapChainGL* createSwapChain(void* _nwh);
 		SwapChainGL* createSwapChain(void* _nwh);
-		void destorySwapChain(SwapChainGL*  _swapChain);
+		void destroySwapChain(SwapChainGL*  _swapChain);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void swap(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 		void makeCurrent(SwapChainGL* _swapChain = NULL);
 
 

+ 1 - 1
src/renderer_gl.cpp

@@ -4031,7 +4031,7 @@ namespace bgfx
 
 
 		if (NULL != m_swapChain)
 		if (NULL != m_swapChain)
 		{
 		{
-			s_renderGL->m_glctx.destorySwapChain(m_swapChain);
+			s_renderGL->m_glctx.destroySwapChain(m_swapChain);
 			m_swapChain = NULL;
 			m_swapChain = NULL;
 		}
 		}