aboutsummaryrefslogtreecommitdiff
path: root/layers/basic_plugin.c
diff options
context:
space:
mode:
authorJon Ashburn <jon@lunarg.com>2014-10-23 10:59:23 -0600
committerCourtney Goeltzenleuchter <courtney@LunarG.com>2014-10-29 18:02:02 -0600
commit3a597c0efaceb6b6d6aa60d35497200f2ee94ef6 (patch)
tree53976fa520b2453c0b189bb82bdbf9d4715ed2a4 /layers/basic_plugin.c
parentdd5d60115216072599ebdfab908a4b3de529e606 (diff)
downloadusermoji-3a597c0efaceb6b6d6aa60d35497200f2ee94ef6.tar.xz
layers: update documentation
Diffstat (limited to 'layers/basic_plugin.c')
-rw-r--r--layers/basic_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/layers/basic_plugin.c b/layers/basic_plugin.c
index 3807d493..1674107d 100644
--- a/layers/basic_plugin.c
+++ b/layers/basic_plugin.c
@@ -144,7 +144,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglGetGpuInfo(XGL_PHYSICAL_GPU gpu, XGL_PHYSI
XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu;
printf("At start of wrapped xglGetGpuInfo() call w/ gpu: %p\n", (void*)gpu);
pCurObj = gpuw;
- pthread_once(&tabOnce, initLayerTable);
+ pthread_once(&tabOnce, initLayerTable); //Required for LD_PRELOAD case
XGL_RESULT result = myTable.GetGpuInfo((XGL_PHYSICAL_GPU)gpuw->nextObject, infoType, pDataSize, pData);
printf("Completed wrapped xglGetGpuInfo() call w/ gpu: %p\n", (void*)gpu);
return result;
@@ -155,7 +155,7 @@ XGL_LAYER_EXPORT XGL_RESULT XGLAPI xglCreateDevice(XGL_PHYSICAL_GPU gpu, const X
XGL_BASE_LAYER_OBJECT* gpuw = (XGL_BASE_LAYER_OBJECT *) gpu;
printf("At start of wrapped xglCreateDevice() call w/ gpu: %p\n", (void*)gpu);
pCurObj = gpuw;
- pthread_once(&tabOnce, initLayerTable);
+ pthread_once(&tabOnce, initLayerTable); //Required for LD_PRELOAD case
XGL_RESULT result = myTable.CreateDevice((XGL_PHYSICAL_GPU)gpuw->nextObject, pCreateInfo, pDevice);
printf("Completed wrapped xglCreateDevice() call w/ pDevice: %p\n", (void*)pDevice);
return result;