OpenGL modifies variable without being explicitly told to
Advertisements Hi, I’m trying to write a program with OpenGL using c++, glad and glfw, but I’ve encountered a problem I cannot wrap my head around. main.cpp #include <glad/glad.h> #include <GLFW/glfw3.h> #include <iostream> #define SCR_WIDTH 1280 #define SCR_Height 720 int main() { GLFWwindow* window = init(); unsigned int VAO, VBO, EBO; glGenVertexArrays(1, &VAO); glGenBuffers(1, &VBO);… Read More OpenGL modifies variable without being explicitly told to