layers: Correct xglBindObjectMemory signature in MemTracker message.
authorTobin Ehlis <tobin@lunarg.com>
Thu, 26 Mar 2015 14:24:16 +0000 (08:24 -0600)
committerTobin Ehlis <tobin@lunarg.com>
Thu, 26 Mar 2015 14:24:57 +0000 (08:24 -0600)
layers/mem_tracker.cpp

index 7a02581..eb682c5 100644 (file)
@@ -941,7 +941,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglDestroyObject(XGL_OBJECT object)
                 freeMemNode(memToFree);
             } else {
                 char str[1024];
-                sprintf(str, "Destroying obj %p that is still bound to memory object %p\nYou should first clear binding by calling xglBindObjectMemory(%p, 0, XGL_NULL_HANDLE)", object, (void*)pDelNode->pMemNode->mem, object);
+                sprintf(str, "Destroying obj %p that is still bound to memory object %p\nYou should first clear binding by calling xglBindObjectMemory(%p, 0, XGL_NULL_HANDLE, 0)", object, (void*)pDelNode->pMemNode->mem, object);
                 layerCbMsg(XGL_DBG_MSG_ERROR, XGL_VALIDATION_LEVEL_0, object, 0, MEMTRACK_DESTROY_OBJECT_ERROR, "MEM", str);
                 // From the spec : If an object has previous memory binding, it is required to unbind memory from an API object before it is destroyed.
                 clearObjectBinding(object);