Fixed typo. Issue #196.

This commit is contained in:
Branimir Karadžić 2014-11-30 09:06:47 -08:00
parent 7c1c180243
commit 3e4b82e7fe
13 changed files with 13 additions and 13 deletions

View file

@ -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);

View file

@ -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!");
} }

View file

@ -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);
} }

View file

@ -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);

View file

@ -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);
} }

View file

@ -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);

View file

@ -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);

View file

@ -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);
} }

View file

@ -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!");
} }

View file

@ -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);

View file

@ -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);
} }

View file

@ -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);

View file

@ -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;
} }