Closed heitaoflower closed 5 years ago
Hi , your deom very well running on my project.
However, I encounter some color format issure, GL_ALPHA always invalid, reported by 1281. GL_RED is ok, but the visual effect not correct.
the context I used is GLFW not SDL.
Do you have any idea ? thanks.
glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, ATLAS_WIDTH, ATLAS_HEIGHT, 0, GL_ALPHA, GL_UNSIGNED_BYTE, atlas_texture);
@heitaoflower hi, I am new on microui with glfw, how can you mix these together? and the render backend code. thank you.
Hi , your deom very well running on my project.
However, I encounter some color format issure, GL_ALPHA always invalid, reported by 1281. GL_RED is ok, but the visual effect not correct.
the context I used is GLFW not SDL.
Do you have any idea ? thanks.
glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, ATLAS_WIDTH, ATLAS_HEIGHT, 0, GL_ALPHA, GL_UNSIGNED_BYTE, atlas_texture);