preinit buffers

This commit is contained in:
artdeell 2021-01-03 19:48:23 +03:00
parent ddb68b6c41
commit 75e582d006

View File

@ -24,8 +24,8 @@ import java.util.*;
public class GLFW public class GLFW
{ {
static FloatBuffer joystickData; static FloatBuffer joystickData = (FloatBuffer)FloatBuffer.allocate(8).flip();
static ByteBuffer buttonData; static ByteBuffer buttonData = (ByteBuffer)ByteBuffer.allocate(8).flip();
/** The major version number of the GLFW library. This is incremented when the API is changed in non-compatible ways. */ /** The major version number of the GLFW library. This is incremented when the API is changed in non-compatible ways. */
public static final int GLFW_VERSION_MAJOR = 3; public static final int GLFW_VERSION_MAJOR = 3;