Mouse.setNativeCursor is messed up

I was using this code:

public static void setCursor(){
		try {
			Texture texture = Texture.loadTexture("mouse.png");
			IntBuffer buffer = texture._buffer;
			Cursor cursor = new Cursor(23, 23, 1, 1, 1, buffer, null);
			Mouse.setNativeCursor(cursor);
		} catch (LWJGLException e) {
			e.printStackTrace();
		}
	}

A texture is just an object with an IntBuffer that holds the int values for the colors of each pixel. However, the cursor looks all screwed up and I don’t know why.

Any help would be appreciated :slight_smile:

CopyableCougar4

Wrong texture format. (Assuming you are the one who created Texture type)