What's the difference between a power rail and a signal line? stbi_write_jpg( "filename", W, H, 1, data, 100) // saved as 1 channel, Afterwards, I loaded the saved image with expectation that it will be single channel: When I run the code: You probably should add: #define STB_IMAGE_IMPLEMENTATION to your code before the include. but it was caused by the next line: glTextureParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_REPEAT); Thank you so much it works perfectly now! #include
Bishopsgate School Term Dates,
Najpouzivanejsie Slova Na Slovensku,
Articles U