rxi / microui

A tiny immediate-mode UI library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About GL_ALPHA

heitaoflower opened this issue · comments

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.