diff --git a/src/framework/graphics/graphicscontextresource.cpp b/src/framework/graphics/graphicscontextresource.cpp index 1f56b0c..7cec9af 100644 --- a/src/framework/graphics/graphicscontextresource.cpp +++ b/src/framework/graphics/graphicscontextresource.cpp @@ -21,12 +21,20 @@ void GraphicsContextResource::Release() BOOL GraphicsContextResource::Initialize() { STACK_TRACE; + ASSERT(m_graphicsDevice == NULL); + if (m_graphicsDevice != NULL) + return FALSE; + return TRUE; } BOOL GraphicsContextResource::Initialize(GraphicsDevice *graphicsDevice) { STACK_TRACE; + ASSERT(m_graphicsDevice == NULL); + if (m_graphicsDevice != NULL) + return FALSE; + ASSERT(graphicsDevice != NULL); if (graphicsDevice == NULL) return FALSE;