OpenGL texture rendering does not match original
问题 I am trying to render a texture with OpenGL. The texture I am using as a test is a bunch of black rectangles on a white background, as follows: However, when rendering, the texture seem to be duplicated and overlayed multiple times on top of itself: I set the scene up using: std::string vertexSource = ShaderLoader::load("vertexSource.vert"); const char* vsource = vertexSource.c_str(); std::string fragmentSource = ShaderLoader::load("fragmentSource.frag"); const char* fsource = fragmentSource