Skip to content

Commit

Permalink
search custom RENDERDOC_HOME first
Browse files Browse the repository at this point in the history
  • Loading branch information
UpcraftLP committed Sep 10, 2024
1 parent 31e0692 commit c9d63db
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@ public static void init() {
if(SparkweaveApi.Client.LOAD_RENDERDOC) {
var libraryPath = System.getProperty("java.library.path");

// if set, search in RENDERDOC_HOME first, then fall back to library path
var rdHome = System.getenv("RENDERDOC_HOME");
if(rdHome != null) {
LOGGER.debug("appending RENDERDOC_HOME to native library path");
libraryPath += File.pathSeparatorChar + rdHome;
System.setProperty("java.library.path", libraryPath);
libraryPath = rdHome + File.pathSeparator + rdHome;
}

var libraryName = System.mapLibraryName("renderdoc");
Expand Down

0 comments on commit c9d63db

Please sign in to comment.