Skip to content

Commit 96ce2c9

Browse files
Added a couple of debug checks
1 parent af77e4f commit 96ce2c9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Graphics/GraphicsEngineOpenGL/src/RenderDeviceGLImpl.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ void RenderDeviceGLImpl :: CreateBuffer(const BufferDesc& BuffDesc, const Buffer
108108

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

209210
void RenderDeviceGLImpl::CreateTextureFromGLHandle(Uint32 GLHandle, const TextureDesc &TexDesc, ITexture **ppTexture)
210211
{
211-
CreateDeviceObject( "texture", TexDesc, ppTexture,
212+
VERIFY(GLHandle, "GL texture handle must not be null");
213+
CreateDeviceObject( "texture", TexDesc, ppTexture,
212214
[&]()
213215
{
214216
auto spDeviceContext = GetImmediateContext();

0 commit comments

Comments
 (0)