Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
5.15.0
-
None
-
Windows10
Description
for (unsigned int i = 0; i < pixel_size; i++)
{ (texture_data)[i * 4 + 0] = 0xff; //R (texture_data)[i * 4 + 1] = 0x00; //G (texture_data)[i * 4 + 2] = 0x00; //B (texture_data)[i * 4 + 3] = 0x00; //A // BUG }ctx->functions()->glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, temp_width, temp_height, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture_data);
If the alpha channel value is 0, the image is not completely transparent.