Shorter structs.

This commit is contained in:
gb 2010-04-01 13:55:19 +00:00
parent 7edf8c9bb7
commit 9075c8d23d

View file

@ -71,7 +71,7 @@ struct _GLContextState {
Window window; Window window;
XVisualInfo *visual; XVisualInfo *visual;
GLXContext context; GLXContext context;
guint swapped_buffers; guint swapped_buffers : 1;
}; };
GLContextState * GLContextState *
@ -96,10 +96,10 @@ gl_swap_buffers(GLContextState *cs)
typedef struct _GLTextureState GLTextureState; typedef struct _GLTextureState GLTextureState;
struct _GLTextureState { struct _GLTextureState {
gboolean was_enabled;
gboolean was_bound;
GLenum target; GLenum target;
GLuint old_texture; GLuint old_texture;
guint was_enabled : 1;
guint was_bound : 1;
}; };
gboolean gboolean