Update MainRenderer.java

This commit is contained in:
ImTallone 2019-03-24 22:22:20 +02:00
parent bc6e357454
commit a22b419c2b

View File

@ -106,6 +106,7 @@ public class MainRenderer implements IRenderer {
}
@SuppressWarnings("unchecked")
public void render(Window window, Context ctx, Vector3f ambientLight, DirectionalLight directionalLight, List<Chunk> chunks, Block [] blocks) {
if (window.isResized()) {
glViewport(0, 0, window.getWidth(), window.getHeight());