Something in shader is messing the rendering function
Advertisements #include <GL\glew.h> #include <GLFW\glfw3.h> #include <iostream> // GLM library #include <glm/glm.hpp> #include <glm/gtc/matrix_transform.hpp> #include <glm/gtc/type_ptr.hpp> using namespace std; int width, height; // Draw Primitive(s) void draw() { GLenum mode = GL_TRIANGLES; GLsizei indices = 6; glDrawElements(mode, indices, GL_UNSIGNED_BYTE, nullptr); } // Create and Compile Shaders static GLuint CompileShader(const string& source, GLuint shaderType) { //… Read More Something in shader is messing the rendering function