loader: Change sample code to not include a pointer.
authorIan Elliott <ian@lunarg.com>
Fri, 13 Feb 2015 23:51:05 +0000 (16:51 -0700)
committerIan Elliott <ian@lunarg.com>
Fri, 13 Feb 2015 23:51:05 +0000 (16:51 -0700)
It could imply that the ICD needs to allocate space for it.  The pointer is
really to be owned by the loader.

loader/README.md

index b88d98b..b3b9fdf 100644 (file)
@@ -50,8 +50,8 @@ Note: Both of the LIBXGL\_*\_PATH variables may contain more than one directory.
   #include "xglIcd.h"
 
   struct {
-        XGL_LOADER_DATA *reservedForLoader; // Reserve space for pointer to loader's dispatch table
-        myObjectClass myObj;                // Your driver's C++ class
+        XGL_LOADER_DATA reservedForLoader; // Reserve space for pointer to loader's dispatch table
+        myObjectClass myObj;               // Your driver's C++ class
   } xglObj;
 
   xglObj alloc_icd_obj()