fix writing to nonexistant dir in test debug
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
Some checks failed
studiorailgun/Renderer/pipeline/head There was a failure building this commit
This commit is contained in:
parent
3511d8f81d
commit
29e7e3db00
@ -1440,6 +1440,7 @@ Client hitbox body destruction based on distance from player (for performance)
|
|||||||
ServerEntityUtils move entity function properly transfers entity tags now
|
ServerEntityUtils move entity function properly transfers entity tags now
|
||||||
Fix ServerAttackTree freezing bug
|
Fix ServerAttackTree freezing bug
|
||||||
Fix visually attaching item on server creating item at 0,0,0 on init (thereby creating a new datacell if its not nearby)
|
Fix visually attaching item on server creating item at 0,0,0 on init (thereby creating a new datacell if its not nearby)
|
||||||
|
Fix test failure debug render writing to file
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -3,6 +3,7 @@ package electrosphere.test.testutils;
|
|||||||
import java.awt.image.BufferedImage;
|
import java.awt.image.BufferedImage;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.nio.file.Files;
|
||||||
|
|
||||||
import javax.imageio.ImageIO;
|
import javax.imageio.ImageIO;
|
||||||
|
|
||||||
@ -20,6 +21,7 @@ public class TestRenderingUtils {
|
|||||||
public static void saveTestRender(String existingRenderPath){
|
public static void saveTestRender(String existingRenderPath){
|
||||||
BufferedImage screenshot = Globals.renderingEngine.defaultFramebuffer.getPixels(Globals.renderingEngine.getOpenGLState());
|
BufferedImage screenshot = Globals.renderingEngine.defaultFramebuffer.getPixels(Globals.renderingEngine.getOpenGLState());
|
||||||
try {
|
try {
|
||||||
|
Files.createDirectories(new File(existingRenderPath).toPath());
|
||||||
ImageIO.write(screenshot, "png", new File(existingRenderPath));
|
ImageIO.write(screenshot, "png", new File(existingRenderPath));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// TODO Auto-generated catch block
|
// TODO Auto-generated catch block
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user