OpenGL not rendering properly on MacOS M1

  apple-m1, c++, opengl

I have this C++/OpenGL voxel project I am working on. All the development so far has been done on a linux/windows/mac os machine. Recently I bought a macbook air with the m1 chip. Compiling the source code on it runs fine, however when I try to start the application, the 3D voxels don’t get rendered… The skybox gets rendered though, and so does all the GUI and particles. Also, GLFW creates a window twice the size I asked for so when I call glViewport(0, 0, 1280, 720), OpenGL renders to that area in the window. In other words, all of the rendering is done in the bottom left quarter of the screen.

enter image description here

I am using the latest version of GLEW and GLFW with -std=c++17

Source: Windows Questions C++

LEAVE A COMMENT