Skip to content

Commit

Permalink
AddRef() - Fix for compailation failed case. (#1989)
Browse files Browse the repository at this point in the history
* AddRef() - Fix for compailation failed case.

* Revert .shaders version 2 -> 1

* Quieter

* Fixes for Shader Compilation failures

* Changes per PR review.

* Fix for Data/File mix permutations
  • Loading branch information
FitzerIRL authored and Michael Fiess committed Aug 9, 2019
1 parent 9bb696d commit c754542
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 185 deletions.
8 changes: 4 additions & 4 deletions examples/pxScene2d/src/pxResource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ void pxResource::processDownloadedResource(rtFileDownloadRequest* fileDownloadRe
setLoadStatus("httpStatusCode",(uint32_t)fileDownloadRequest->httpStatusCode());
if (gUIThreadQueue)
{
gUIThreadQueue->addTask(pxResource::onDownloadCanceledUI, this, (void*)"reject");
gUIThreadQueue->addTask(onDownloadCanceledUI, this, (void*)"reject");
}
}
else if (fileDownloadRequest->downloadStatusCode() == 0 &&
Expand Down Expand Up @@ -901,7 +901,7 @@ void pxResource::processDownloadedResource(rtFileDownloadRequest* fileDownloadRe
// TODO review overall flow and organization
if (gUIThreadQueue)
{
gUIThreadQueue->addTask(pxResource::onDownloadCompleteUI, this, (void*)"reject");
gUIThreadQueue->addTask(onDownloadCompleteUI, this, (void*)"reject");
}
}
else if (result == PX_RESOURCE_LOAD_SUCCESS)
Expand All @@ -916,7 +916,7 @@ void pxResource::processDownloadedResource(rtFileDownloadRequest* fileDownloadRe
// TODO review overall flow and organization
if (gUIThreadQueue)
{
gUIThreadQueue->addTask(pxResource::onDownloadCompleteUI, this, (void*)"resolve");
gUIThreadQueue->addTask(onDownloadCompleteUI, this, (void*)"resolve");
}
}
}
Expand All @@ -933,7 +933,7 @@ void pxResource::processDownloadedResource(rtFileDownloadRequest* fileDownloadRe
// TODO review overall flow and organization
if (gUIThreadQueue)
{
gUIThreadQueue->addTask(pxResource::onDownloadCompleteUI, this, (void*)"reject");
gUIThreadQueue->addTask(onDownloadCompleteUI, this, (void*)"reject");
}
}
}
Expand Down
Loading

0 comments on commit c754542

Please sign in to comment.