From 3e4b82e7fe6eb3192366fb6d0189e60f856f65d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 30 Nov 2014 09:06:47 -0800 Subject: [PATCH] Fixed typo. Issue #196. --- src/glcontext_eagl.h | 2 +- src/glcontext_eagl.mm | 2 +- src/glcontext_egl.cpp | 2 +- src/glcontext_egl.h | 2 +- src/glcontext_glx.cpp | 2 +- src/glcontext_glx.h | 2 +- src/glcontext_nsgl.h | 2 +- src/glcontext_nsgl.mm | 2 +- src/glcontext_ppapi.cpp | 2 +- src/glcontext_ppapi.h | 2 +- src/glcontext_wgl.cpp | 2 +- src/glcontext_wgl.h | 2 +- src/renderer_gl.cpp | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/glcontext_eagl.h b/src/glcontext_eagl.h index 91674ff9d..024447500 100644 --- a/src/glcontext_eagl.h +++ b/src/glcontext_eagl.h @@ -25,7 +25,7 @@ namespace bgfx static bool isSwapChainSupported(); SwapChainGL* createSwapChain(void* _nwh); - void destorySwapChain(SwapChainGL* _swapChain); + void destroySwapChain(SwapChainGL* _swapChain); void swap(SwapChainGL* _swapChain = NULL); void makeCurrent(SwapChainGL* _swapChain = NULL); diff --git a/src/glcontext_eagl.mm b/src/glcontext_eagl.mm index 420a95de9..2a8285521 100644 --- a/src/glcontext_eagl.mm +++ b/src/glcontext_eagl.mm @@ -102,7 +102,7 @@ namespace bgfx return NULL; } - void GlContext::destorySwapChain(SwapChainGL* /*_swapChain*/) + void GlContext::destroySwapChain(SwapChainGL* /*_swapChain*/) { BX_CHECK(false, "Shouldn't be called!"); } diff --git a/src/glcontext_egl.cpp b/src/glcontext_egl.cpp index ecd73dbf0..979b165a5 100644 --- a/src/glcontext_egl.cpp +++ b/src/glcontext_egl.cpp @@ -294,7 +294,7 @@ EGL_IMPORT 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); } diff --git a/src/glcontext_egl.h b/src/glcontext_egl.h index fb6b15daa..72414d8ae 100644 --- a/src/glcontext_egl.h +++ b/src/glcontext_egl.h @@ -29,7 +29,7 @@ namespace bgfx static bool isSwapChainSupported(); SwapChainGL* createSwapChain(void* _nwh); - void destorySwapChain(SwapChainGL* _swapChain); + void destroySwapChain(SwapChainGL* _swapChain); void swap(SwapChainGL* _swapChain = NULL); void makeCurrent(SwapChainGL* _swapChain = NULL); diff --git a/src/glcontext_glx.cpp b/src/glcontext_glx.cpp index c657828fe..ed4bb0283 100644 --- a/src/glcontext_glx.cpp +++ b/src/glcontext_glx.cpp @@ -248,7 +248,7 @@ namespace bgfx 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); } diff --git a/src/glcontext_glx.h b/src/glcontext_glx.h index 51e99c2b4..9cf0270f2 100644 --- a/src/glcontext_glx.h +++ b/src/glcontext_glx.h @@ -29,7 +29,7 @@ namespace bgfx static bool isSwapChainSupported(); SwapChainGL* createSwapChain(void* _nwh); - void destorySwapChain(SwapChainGL* _swapChain); + void destroySwapChain(SwapChainGL* _swapChain); void swap(SwapChainGL* _swapChain = NULL); void makeCurrent(SwapChainGL* _swapChain = NULL); diff --git a/src/glcontext_nsgl.h b/src/glcontext_nsgl.h index e33fe9400..3b157de73 100644 --- a/src/glcontext_nsgl.h +++ b/src/glcontext_nsgl.h @@ -25,7 +25,7 @@ namespace bgfx static bool isSwapChainSupported(); SwapChainGL* createSwapChain(void* _nwh); - void destorySwapChain(SwapChainGL* _swapChain); + void destroySwapChain(SwapChainGL* _swapChain); void swap(SwapChainGL* _swapChain = NULL); void makeCurrent(SwapChainGL* _swapChain = NULL); diff --git a/src/glcontext_nsgl.mm b/src/glcontext_nsgl.mm index 9c5facacc..ec34e4fde 100644 --- a/src/glcontext_nsgl.mm +++ b/src/glcontext_nsgl.mm @@ -119,7 +119,7 @@ namespace bgfx return BX_NEW(g_allocator, SwapChainGL)(_nwh); } - void GlContext::destorySwapChain(SwapChainGL* _swapChain) + void GlContext::destroySwapChain(SwapChainGL* _swapChain) { BX_DELETE(g_allocator, _swapChain); } diff --git a/src/glcontext_ppapi.cpp b/src/glcontext_ppapi.cpp index 74524fa91..a6cb71133 100644 --- a/src/glcontext_ppapi.cpp +++ b/src/glcontext_ppapi.cpp @@ -169,7 +169,7 @@ namespace bgfx return NULL; } - void GlContext::destorySwapChain(SwapChainGL* /*_swapChain*/) + void GlContext::destroySwapChain(SwapChainGL* /*_swapChain*/) { BX_CHECK(false, "Shouldn't be called!"); } diff --git a/src/glcontext_ppapi.h b/src/glcontext_ppapi.h index 53fd801a1..e0c684674 100644 --- a/src/glcontext_ppapi.h +++ b/src/glcontext_ppapi.h @@ -29,7 +29,7 @@ namespace bgfx static bool isSwapChainSupported(); SwapChainGL* createSwapChain(void* _nwh); - void destorySwapChain(SwapChainGL* _swapChain); + void destroySwapChain(SwapChainGL* _swapChain); void swap(SwapChainGL* _swapChain = NULL); void makeCurrent(SwapChainGL* _swapChain = NULL); diff --git a/src/glcontext_wgl.cpp b/src/glcontext_wgl.cpp index be3bfea4e..381fd9830 100644 --- a/src/glcontext_wgl.cpp +++ b/src/glcontext_wgl.cpp @@ -311,7 +311,7 @@ namespace bgfx return swapChain; } - void GlContext::destorySwapChain(SwapChainGL* _swapChain) + void GlContext::destroySwapChain(SwapChainGL* _swapChain) { BX_DELETE(g_allocator, _swapChain); } diff --git a/src/glcontext_wgl.h b/src/glcontext_wgl.h index 249a41269..ea9211054 100644 --- a/src/glcontext_wgl.h +++ b/src/glcontext_wgl.h @@ -73,7 +73,7 @@ typedef void (APIENTRYP PFNGLSTENCILOPPROC) (GLenum fail, GLenum zfail, GLenum z static bool isSwapChainSupported(); SwapChainGL* createSwapChain(void* _nwh); - void destorySwapChain(SwapChainGL* _swapChain); + void destroySwapChain(SwapChainGL* _swapChain); void swap(SwapChainGL* _swapChain = NULL); void makeCurrent(SwapChainGL* _swapChain = NULL); diff --git a/src/renderer_gl.cpp b/src/renderer_gl.cpp index ae9bae096..b6a088579 100644 --- a/src/renderer_gl.cpp +++ b/src/renderer_gl.cpp @@ -4031,7 +4031,7 @@ namespace bgfx if (NULL != m_swapChain) { - s_renderGL->m_glctx.destorySwapChain(m_swapChain); + s_renderGL->m_glctx.destroySwapChain(m_swapChain); m_swapChain = NULL; }