Skip to content

Commit

Permalink
Add typedef for GL capabilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
skullernet committed Aug 11, 2024
1 parent ea202a6 commit 102b04b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/refresh/gl.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ typedef struct {
bool framebuffer_ok;
} glRefdef_t;

enum {
typedef enum {
QGL_CAP_LEGACY = BIT(0),
QGL_CAP_SHADER = BIT(1),
QGL_CAP_TEXTURE_BITS = BIT(2),
Expand All @@ -147,7 +147,7 @@ enum {
QGL_CAP_TEXTURE_LOD_BIAS = BIT(5),
QGL_CAP_TEXTURE_NON_POWER_OF_TWO = BIT(6),
QGL_CAP_TEXTURE_ANISOTROPY = BIT(7),
};
} glcap_t;

#define QGL_VER(major, minor) ((major) * 100 + (minor))
#define QGL_UNPACK_VER(ver) (ver) / 100, (ver) % 100
Expand All @@ -156,7 +156,7 @@ typedef struct {
int ver_gl;
int ver_es;
int ver_sl;
int caps;
glcap_t caps;
int colorbits;
int depthbits;
int stencilbits;
Expand Down

0 comments on commit 102b04b

Please sign in to comment.