Skip to content

Commit

Permalink
Added a couple of debug checks
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Feb 20, 2018
1 parent af77e4f commit 96ce2c9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ void RenderDeviceGLImpl :: CreateBuffer(const BufferDesc& BuffDesc, const Buffer

void RenderDeviceGLImpl :: CreateBufferFromGLHandle(Uint32 GLHandle, const BufferDesc &BuffDesc, IBuffer **ppBuffer)
{
VERIFY(GLHandle, "GL buffer handle must not be null");
CreateDeviceObject( "buffer", BuffDesc, ppBuffer,
[&]()
{
Expand Down Expand Up @@ -208,7 +209,8 @@ void RenderDeviceGLImpl::CreateTexture(const TextureDesc& TexDesc, const Texture

void RenderDeviceGLImpl::CreateTextureFromGLHandle(Uint32 GLHandle, const TextureDesc &TexDesc, ITexture **ppTexture)
{
CreateDeviceObject( "texture", TexDesc, ppTexture,
VERIFY(GLHandle, "GL texture handle must not be null");
CreateDeviceObject( "texture", TexDesc, ppTexture,
[&]()
{
auto spDeviceContext = GetImmediateContext();
Expand Down

0 comments on commit 96ce2c9

Please sign in to comment.