rxi / microui

A tiny immediate-mode UI library
MIT License
3.49k stars 244 forks source link

About GL_ALPHA #2

Closed heitaoflower closed 5 years ago

heitaoflower commented 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);

beetaa commented 2 years ago

@heitaoflower hi, I am new on microui with glfw, how can you mix these together? and the render backend code. thank you.