Skip to content

Commit

Permalink
Add method to dump state to file
Browse files Browse the repository at this point in the history
  • Loading branch information
makamys committed Jan 25, 2024
1 parent 80d4f37 commit b54e24b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/makamys/coretweaks/util/OpenGLDebugging.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static void dumpToFile(Consumer<Consumer<String>> dumper, String fileName
}

public static void dumpOpenGLStateToFile() {
dumpToFile((p) -> dumpOpenGLState(p), "gl_dump_state.txt");
dumpToFile((p) -> dumpOpenGLState(p), "gl-dump-state.txt");
}

public static void dumpOpenGLState() {
Expand All @@ -112,7 +112,7 @@ public static void dumpOpenGLState(Consumer<String> printer) {
}

public static void dumpAllIsEnabledToFile() {
dumpToFile((p) -> dumpAllIsEnabled(p), "gl_dump_enabled.txt");
dumpToFile((p) -> dumpAllIsEnabled(p), "gl-dump-enabled.txt");
}

public static void dumpAllIsEnabled() {
Expand All @@ -130,7 +130,7 @@ public static void dumpAllIsEnabled(Consumer<String> printer) {
}

public static void dumpAllTypeToFile(String type) {
dumpToFile((p) -> dumpAllType(type, p), "gl_dump_type.txt");
dumpToFile((p) -> dumpAllType(type, p), "gl-dump-type-" + type + ".txt");
}

public static void dumpAllType(String type) {
Expand Down

0 comments on commit b54e24b

Please sign in to comment.