Failing to map a simple unsigned byte rgb texture to a quad:
问题 I have a very simple program that maps a dummy red texture to a quad. Here is the texture definition in C++: struct DummyRGB8Texture2d { uint8_t data[3*4]; int width; int height; }; DummyRGB8Texture2d myTexture { { 255,0,0, 255,0,0, 255,0,0, 255,0,0 }, 2u, 2u }; This is how I setup the texture: void SetupTexture() { // allocate a texture on the default texture unit (GL_TEXTURE0): GL_CHECK(glCreateTextures(GL_TEXTURE_2D, 1, &m_texture)); // allocate texture: GL_CHECK(glTextureStorage2D(m